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
my site uses Javascript to calculate height for certain elements (section waypoints). Usually this is safe to do when the document has loaded. With critical though my css is async. JS calculates wrong and sometime later the css comes in. Fillament has an event for it luckily.
This is what critical generates for me:
<script>
(function(u){function loadCSS(e,t,n){"use strict";function r(){for(var t,i=0;i<d.length;i++)d[i].href&&d[i].href.indexOf(e)>-1&&(t=!0);t?o.media=n||"all":setTimeout(r)}var o=window.document.createElement("link"),i=t||window.document.getElementsByTagName("script")[0],d=window.document.styleSheets;return o.rel="stylesheet",o.href=e,o.media="only x",i.parentNode.insertBefore(o,i),r(),o}for(var i in u){loadCSS(u[i]);}}(['http://fonts.googleapis.com/css?family=Open+Sans:400|Special+Elite','fonts/exchange.f9715081.css','default.dd83315a.css']));
</script>
loadCSS would, in theory return 3 links, together with the polyfill they offer i could make it work if there would be a way to expose them.
Thanks! (-:
The text was updated successfully, but these errors were encountered:
Hello Addy,
my site uses Javascript to calculate height for certain elements (section waypoints). Usually this is safe to do when the document has loaded. With critical though my css is async. JS calculates wrong and sometime later the css comes in. Fillament has an event for it luckily.
This is what critical generates for me:
loadCSS would, in theory return 3 links, together with the polyfill they offer i could make it work if there would be a way to expose them.
Thanks! (-:
The text was updated successfully, but these errors were encountered: