-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update libs "clipboard" and "marked" #401
Conversation
src/views/pages/network.html
Outdated
@@ -21,22 +21,6 @@ | |||
{{/each}} | |||
</style> | |||
|
|||
{{#if !@shared.isServer && !@shared.googleMapsLoaded}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no difference here, the scripts are already dynamically inserted and therefore async. Please revert this part.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done! Out of curiosity where is the dynamic insertion happening from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The whole file is a Ractive component so the rendering is handled by Ractive and this section is specifically restricted from server rendering (!@shared.isServer
) so it happens on the client.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! I'll look into how Mustaches is used, I haven't come across it before
src/views/pages/network.html
Outdated
@@ -109,10 +109,10 @@ <h3>Big network in China</h3> | |||
|
|||
<div class="china-banner"> | |||
<div class="china-bg"> | |||
<img width="1140" height="328" src="{{@shared.assetsHost}}/img/network/china-bg.jpg" srcset="{{@shared.assetsHost}}/img/network/china-bg@2x.jpg 2x" loading="lazy"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to be a mistake?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did one too many ctrl+z, reverted :)
Looks good now 👍 |
Three small changes which contribute towards optimizations listed in #331