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

Investigate whether a separate homepage.css would be optimal #401

Open
5 tasks
philwareham opened this issue Jul 22, 2021 · 0 comments
Open
5 tasks

Investigate whether a separate homepage.css would be optimal #401

philwareham opened this issue Jul 22, 2021 · 0 comments
Assignees

Comments

@philwareham
Copy link
Member

philwareham commented Jul 22, 2021

At the moment we have a single CSS file that is used across the .com site, docs site, themes site and plugins site. While this is good for caching there may be a valid case for having a separate CSS file that is used on homepages only.

This would allow us to target elements that only appear on the homepage(s) and remove all other non-essential selectors from that file. Vice-versa, the homepage-only CSS selectors would not pollute the other pages of the site.

Homepage-only elements:

  • Canvas element on .com site.
  • The 'features' sections, with illustrations.
  • The mini blog banner.
  • Site showcase teaser.
  • Ads.

Have to weight up the benefits against cons such as having to cache two CSS files, maintainability, etc. Should be fairly straightforward due to our modular Sass files.

This would help us achieve 100 mobile score on PageSpeed Insights/Lighthouse (currently sitting at 99 due to flagged unused CSS).

@philwareham philwareham self-assigned this Jul 22, 2021
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