1

I have been trying to import a css file using @import through javascript. I know there are other methods like createELement("link") through js but I need to import the css file instead of linking it, because I'm working on client site and their css is conflicting with mine. I can't set !important for all my css and thought @import css file has much higher preference than linked css file and its working.I just need to know how to import it using js.

1 Answers1

1

Javascript does not have @import .You can check this link for more information More about it

Community
  • 1
  • 1
brk
  • 48,835
  • 10
  • 56
  • 78