Forum Discussion
_anomDiebolt_
8 years agoQrew Elite
Show the code you are using the the URL of moment 2.14.0 you want to use.
The various libraries QuickBase uses can be loaded globally through the use of <script> or if they are AMD modules through the requirejs loader. QuickBase developers typically load their supplemental scripts they need through jQuery's getScript() method simply because doing so is concise. But overall it is a small mess as there isn't a unified way to load script and some libraries do loader detection and will not load through getScript() if they detect that requirejs is being used (this is probably what you are experiencing). Other libraries can be loaded globally using <script>, through AMD or through CommonJS. This is very frustrating working this out on a new library that does not load.
Luckily browsers will soon support native module loading through the import keyword and a lot of this nonsense will go away (although the version of QuickBase we are now using may never adopt using import because of the parallel development of Mercury - who knows). See
https://jakearchibald.com/2017/es-modules-in-browsers/
The various libraries QuickBase uses can be loaded globally through the use of <script> or if they are AMD modules through the requirejs loader. QuickBase developers typically load their supplemental scripts they need through jQuery's getScript() method simply because doing so is concise. But overall it is a small mess as there isn't a unified way to load script and some libraries do loader detection and will not load through getScript() if they detect that requirejs is being used (this is probably what you are experiencing). Other libraries can be loaded globally using <script>, through AMD or through CommonJS. This is very frustrating working this out on a new library that does not load.
Luckily browsers will soon support native module loading through the import keyword and a lot of this nonsense will go away (although the version of QuickBase we are now using may never adopt using import because of the parallel development of Mercury - who knows). See
https://jakearchibald.com/2017/es-modules-in-browsers/