Skip to content
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

Excessive total page file size — 1.4+ MB #345

Open
maxmilton opened this issue Aug 11, 2018 · 0 comments
Open

Excessive total page file size — 1.4+ MB #345

maxmilton opened this issue Aug 11, 2018 · 0 comments

Comments

@maxmilton
Copy link

On the initial site load with a completely cold cache, the total download file size exceeds 1.4 MB... which is extreme for a Svelte powered site!

Network waterfall: https://www.webpagetest.org/result/180811_1R_66c4b9f41273b3476c0412bc0d0e980d/1/details/#waterfall_view_step1

A quick analysis shows the service worker is fetching everything, including woff and woff2 versions of a bunch of fonts (36 fonts total ❗ ). In this case it may be better to use Google fonts to allow browsers to only load fonts which are used. Or even better yet use a system font stack to avoid the font network requests alltogether.

Some of the *worker.js files are huge too as is the codemirror bundle so there's definitely room for improvement. Maybe a lightweight code syntax highlighter would be better in the docs (e.g. https://github.com/PrismJS/prism) and just load codemirror when necessary for the REPL..

@maxmilton maxmilton mentioned this issue Aug 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant