Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

Optimize css for above the fold #496

Open
ScottDowne opened this issue Oct 5, 2015 · 1 comment
Open

Optimize css for above the fold #496

ScottDowne opened this issue Oct 5, 2015 · 1 comment

Comments

@ScottDowne
Copy link
Contributor

What this means is css that isn't used in our initial display, can be loaded later and not block the page.

CSS that is required for the initial page, we should load inline(or something else, require?) as blocking.

I'm guessing that any components or css that's use in the page we link to in the snippet is considered above the fold, the rest we can load later.

@ScottDowne
Copy link
Contributor Author

From the technical point of view, this might be quite easy.

We already want to chop up our css as a set of component based less files.

Then, we have two less files, one is above the fold, which we require in, one is below, which we link to.

These files would just be importing the components as they need them. So header.less, footer.less, the main page, and any component less files needed for page 1 of seq could be in above the fold.less, the rest in below.

@ScottDowne ScottDowne self-assigned this Oct 5, 2015
@adamlofting adamlofting modified the milestones: Not yet assigned to a heartbeat, New Fundraising Platform Launch Oct 9, 2015
@adamlofting adamlofting removed this from the Not yet assigned to a heartbeat milestone Oct 23, 2015
@jbuck jbuck modified the milestone: Bluesky (nice but out of scope) Nov 27, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants