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
Async CSS loading is broken in Firefox 77 #1199
Comments
Looks like there's a Mozilla issue: Some more info here: |
cc @developit |
Ah! Yikes. Here's a workaround you can throw in your // preact.config.js
export default function(config, env, helpers) {
const critters = helpers.getPluginsByName(config, 'Critters')[0];
if (critters) {
// The default strategy in Preact CLI is "media",
// but there are 6 different loading techniques:
// https://github.com/GoogleChromeLabs/critters#preloadstrategy
critters.plugin.options.preload = 'body';
}
} |
Awesome, cheers! I imagine the fix will flow down from the nightly build soon. Also, if you check the twitter thread, Scott mentions a newer method that might be worth a look. |
For my own curiosity - was this issue present in any Firefox mainline versions? |
I just checked 76.0.1 (stable) on another machine and it was the same as 77, i.e. broken. |
also 75, and mobile versions of firefox |
I opened a PR to revert back to the old behavior. The |
Do you want to request a feature or report a bug?
This is a bug. It seems to be resolved in Firefox nightly but at this moment it's broken on the v77 beta build of Firefox. It could be a beta issue, if someone could test on stable that'd be awesome. As a workaround I've just locked the version at
3.0.0-rc.9
in our projects.What is the current behaviour?
The stylesheet loaded via the new technique introduced in
3.0.0-rc.13
is broken on Firefox 77.Prior to
3.0.0-rc.13
stylesheets were loaded like this:In
3.0.0-rc.13
they are now loaded with the following snippet:If the current behaviour is a bug, please provide the steps to reproduce.
A test case is here:
https://jsfiddle.net/6gnwvfoe/
If the font stays as the default browser serif font, then you're experiencing the issue. Chrome and Safari seem fine.
What is the expected behaviour?
The stylesheet loads as normal.
The text was updated successfully, but these errors were encountered: