I am developing a Salesforce application that is using jQuery, jQueryUI and a custom plugin. The
script tags in the page markup are in the correct order:
All three are loading (can view the code in Chrome Development Tools), but when inspecting the Network tab they are loading in a different order; the plug-in is loading before the jQueryUi. This means the plugin is failing (there is no widget method).
Why is this happening and how can I correct it?
The goal is to add the scripts to an existing form (i.e. Account Edit) to add functionality.
They are being added, just not in the same order. I've found that dynamically added js files ARE added async. So now I'm struggling how to over come this.