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

Performance: preload stylesheets #218

Open
kwajiehao opened this issue Jan 25, 2021 · 1 comment
Open

Performance: preload stylesheets #218

kwajiehao opened this issue Jan 25, 2021 · 1 comment
Labels

Comments

@kwajiehao
Copy link
Contributor

Describe the bug
This isn't a bug, but a performance optimization. Google pagespeed shows us that our stylesheets aren't being loaded in an optimal manner - we should preload them instead. See a sample report here: https://developers.google.com/speed/pagespeed/insights/?url=https%3A%2F%2Fwww.vaccine.gov.sg

To Reproduce
Steps to reproduce the behavior This is a problem with how the template is loaded

Expected behavior
The stylesheets should be loaded as <link rel="preload" as="style"...> instead of <link rel="stylesheet"...>

Screenshots
N/A

@lisa-kwok lisa-kwok added the P1 Important and urgent label Jan 25, 2021
@lisa-kwok
Copy link
Contributor

adding onto the thread, there are two more lighthouse audit issues which are pending our investigation
Screenshot 2021-01-28 at 2 36 40 PM
Screenshot 2021-01-28 at 2 37 19 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants