12
I created a file containing css that are used in my system.
I wonder what is the difference between calling css by link or by @import thus:
/* ou dentro do codEventos.css */
@import "../padrao.css";
<link rel="stylesheet" href="padrao.css">
<link rel="stylesheet" href="codEventos.css">
What are the advantages/disadvantages?
I read in a link: dont-use-import
that there is a big difference in performance, since the link can carry the css in parallel making have more performance on the @import,of course it’s not all browsers that play like this.
I can’t detail an answer right now, but if I’m not mistaken
<link>will work on a basis of the page path that called it and the@importmay work quite differently, ie there will be in "some cases" differences in the use of url()– Guilherme Nascimento