Javascript files are not loading at the beginning of the game

I have a few javascript files that are needed for the project. I imported them as plugin into the project. On building the project to web-mobile the javascript files are loaded after some time. But
when I play from the cocos creator everything is fine. everything works fine.
Is there any way to load javascript files before staring the scene.

Got a solution.
Cocos loads JavaScript files in alphabetical order.
So my JavaScript libs were dependent on each other. The JavaScript file that was dependent on other js file was loading earlier than its dependency.
So I just rename the file which was supposed to be loaded first from abc.js to 1.abc.js.