You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a FOAC on every page load before the content scripts kick in. It's mostly instant on inert sites like Hacker News but more noticeable on chunky single-page apps like the new Reddit.
Why is this happening? Content scripts documentation says css should be applied before the page load. Is this compromised by registering the scripts via background js instead of directly in the manifest file?
The text was updated successfully, but these errors were encountered:
One untested theory is that this is due to each css and js file getting injected individually. It's possible that using a bundler to combine all the files into only 1 per site may remove the FOAC.
There is work in #10 which adds package.json to the project, so pulling in a bundler such as Webpack would be simple.
(I christen thee FOAC)
There's a FOAC on every page load before the content scripts kick in. It's mostly instant on inert sites like Hacker News but more noticeable on chunky single-page apps like the new Reddit.
Why is this happening? Content scripts documentation says css should be applied before the page load. Is this compromised by registering the scripts via background js instead of directly in the manifest file?
The text was updated successfully, but these errors were encountered: