I am declaring global variables across different js files, which are then used in different files. I need to make sure that all js have loaded before I start execution. I am also trying to move to modular js using require.js. But for now I need a quick solution.
Is it safe to run my js code under `$().ready()`? I guess script tags would be loaded synchronously and thus DOM wont be ready until all scripts have been loaded. 

Or does `$(window).load()` guarantee that all script files have been loaded.

Thanks!