I created a file containing css
patterns that are used on my system.
I would like to know what is the difference between calling css by link
or @import
like this:
/* 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?
Read on a link: dont-use-import
that there is a big difference in performance, since link
can load css
in parallel by having more performance on @import
, of course not all browsers that interpret this way.