Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add delay to deleting Critical CSS when all is cached #1073
When doing a hard refresh on speedy template, there
This change adds a 1 second delay before removing this CSS. This
I looked at simply not deleting the critical CSS, but that was a bigger
I didn't want to use loadCSS here because that would put the stylesheet at a different spot than in the head tag: "The code above will insert a new CSS stylesheet link after the last stylesheet or script that it finds in the page". I just realized though that it actually does the same thing. I also kinda forgot that if we were hard-refreshing, you wouldn't be pulling the all.css from the cache at all. So the description above doesn't make much sense.
So I think the better plan then is to totally just forget about the sessionStorage thing, since it really doesn't do anything