Hi colleagues, I’m Frank, author of Autoptimize.
I pushed out a new release 2 days ageo, which includes Filamentgroup’s loadCSS solution to load the CSS in a deferred manner. The basis of this is e.g.;
<link rel="preload" as="style" media="all" href="https://somesite.com/wp-content/cache/autoptimize/css/autoptimize_d97be2d1e59fda6be542613822904ed1.css" onload="this.rel='stylesheet'" />
Now when rocketloader is active, the onload handler’s JS gets (badly) broken.
-> so can I prevent that somehow on my side (similar to the
data-cfasync='false'for script tags)?
-> or can you from your side fix this somehow (given the popularity of Filamentgroup’s loadCSS this is bound to happen more then just for Autoptimize users)
- The topic ‘rocket loader breaking onload JS on linked CSS’ is closed to new replies.