KhanovaSkola / khanovaskola-v3

https://khanovaskola.cz
MIT License
2 stars 3 forks source link

Look at Google's suggestions for optimizing site speed #8

Closed danielhollas closed 4 years ago

danielhollas commented 4 years ago

https://analytics.google.com/analytics/web/#/report/content-site-speed-suggestions/

Also, check out: https://github.com/h5bp/server-configs-nginx/tree/master/h5bp/web_performance

This also looks like a good idea: https://github.com/h5bp/server-configs-nginx/blob/master/h5bp/web_performance/cache-file-descriptors.conf

...but maybe not? https://trac.nginx.org/nginx/ticket/1630 image

danielhollas commented 4 years ago

Landing page results:

obrazek

obrazek

Suggestion: https://web.dev/time-to-first-byte/

More on results: https://web.dev/vitals/

danielhollas commented 4 years ago

To speed up video pages, we could preconnect to YouTube <link rel="preconnect" href="https://www.youtube-nocookie.com">

Though it's not super clear whether this is necessary, maybe we connect early to get the JS payloads anyway? Need to check the waterfall.

This page looks cool. https://www.codebeast.dev/improve-page-load-performance-with-modern-browser-hints-best-practices/ We should probably also move "require.min.js" to header and defer it.

danielhollas commented 4 years ago

After enabling HTTP2 obrazek

Closing, more magic probably not required