How to load CSS asynchronously without using JavaScript?

前端 未结 5 826
情深已故
情深已故 2020-12-08 16:43

Suppose if I have a website http://somethingsomething.com

And I have 3 css file

  • common.css
  • homepage.css
  • inner-pages.css
5条回答
  •  孤街浪徒
    2020-12-08 16:58

    Include your CSS in the instead of ... "it seems this trick causes Chrome & Firefox to start the body earlier, and they simply don't block for body stylesheets." and add a condition for IE:

    head

    
      
      
    
    

    body

    
        
            
      
    
    

    by Taylor Hunt @codepen.io

提交回复
热议问题