-
-
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
Optimize site performance #331
Comments
I fixed the easy things but our main issue here is loading more JS that needed and changing that requires some architecture improvements. Also even with that, I'll again argue the website is not at all slow and you shouldn't take that test too seriously (and we still get more points than https://www.npmjs.com/package/jquery) |
Got 70 points now on mobile, 98 on desktop (and we're not really targeting mobile with the package pages, are we?). |
Normally I wouldn't care that much about the rating but we are getting an SEO hit because of this https://dl.dropboxusercontent.com/s/91fgxb5ryxi4tnp/chrome_CZnfNp1Lnf.png Thats why I created the task |
It could be that the file listing or versions take long to load from the API or something like that. There's no way this has "poor" performance on desktop on its own. |
Which of the metrics does it complain about? |
Cumulative Layout Shift (CLS) |
Ok that was important because your initial post was about mobile rank but this is about desktop. |
It's a tricky thing but I believe it's because some stuff in the viewport are rendered after the initial layout paint, thus leading to a layout shift.
There are some sort of easy tweaks you could make:
|
The new site is live, performance optimization work can begin. We're currently failing many metrics |
Our mobile rank https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fwww.jsdelivr.com%2Fpackage%2Fnpm%2Fjquery is only 43.
We really need to fix that.
If anyone has time to go through the code to optimize the performance on mobile and desktop please do. Make sure nothing breaks of course.
I will check it out later myself if nobody takes over this task.
Switch fonts to CSS2 https://developers.google.com/fonts/docs/css2
The text was updated successfully, but these errors were encountered: