How to control CSSS loading using Javascript?

Asked

Viewed 33 times

0

The Requirejs plugin is able to control the import of scripts without the need to spell them out in html with the tag <script>. This brings advantages like dependency control and import order.

However, Requirejs is not designed to control CSS files.

My question is: is there a way (as elegant as the Requirejs) without the need to explicitly link CSS files directly to html?

  • 2

    requrie-css see if this works.

  • SHOW! That’s exactly what I was talking about! Thank you!!!

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.