Is there a effective difference between
<style type="text/css">@import url(/css/layout.css) all;</style>
and
<link href="/css/layout.css" type="text/css" static="all" rel="stylesheet">
Do browser behave different ?
What is recommended from w3c etc. ?
There are several reasons that you should use <link>
instead of @import
, 2 of them are:
@import
may cause unexpected ordering in how they are downloaded.@import
may cause blank white screen problem.for more information about performance of websites, pls refer High Performance Web Sites.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With