Can the require.js loading script conditionally?

Can I use Require.js to load scripts conditionally? For example, if the user's browser is higher than IE9 than loading the library. If so, how?

+6
source share
1 answer

I usually use conditional comments from html5boilerplate, but there is also a conditional plugin for require.js https://github.com/guybedford/require-is

+2
source

Source: https://habr.com/ru/post/947729/


All Articles