Should I enclose all the code in each of these external files in $ (document) .ready ()?
Only if they need to wait for the DOM to complete before they start.
What is the best practice here?
By combining them into a single file, minimizing it and serving it with the corresponding HTTP compression and cache, it controls it.
source share