loadCSS in head?
-
Hi Frank,
As per loadCSS, the javascript can be loaded in head. All browsers except IE versions below 9 won’t block render. So the author recommends this.
<link rel="preload" href="path/to/mystylesheet.css" as="style" onload="this.onload=null;this.rel='stylesheet'"> <noscript><link rel="stylesheet" href="path/to/mystylesheet.css"></noscript> <script> /*! loadCSS rel=preload polyfill. [c]2017 Filament Group, Inc. MIT License */ (function(){ ... }()); </script>
Is there a filter which will move the javascript in the head?
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘loadCSS in head?’ is closed to new replies.