Closed felipemsantana closed 7 years ago
It allows to pass an array of URLs to one script, so it will try in order and if one fails, it will try the next.
Usage:
nautilus.config({ paths: { jquery: [ 'https://public.cdn.com/libs/jquery.min.js', 'https://private.cdn.com/libs/jquery.min.js', 'https://s3.com/libs/jquery.min.js', '/libs/jquery.min.js' ] } }); nautilus(['jquery']);
It will try to load the script once in the following order:
https://public.cdn.com/libs/jquery.min.js
https://private.cdn.com/libs/jquery.min.js
https://s3.com/libs/jquery.min.js
/libs/jquery.min.js
Amazing @fmatoss, to merge it: Can you add this sample in README?
Done @raphamorim
👍
It allows to pass an array of URLs to one script, so it will try in order and if one fails, it will try the next.
Usage:
It will try to load the script once in the following order:
https://public.cdn.com/libs/jquery.min.js
https://private.cdn.com/libs/jquery.min.js
https://s3.com/libs/jquery.min.js
/libs/jquery.min.js