IE has a limit of 31 style sheets (there are ways around that) but is there a limit to how many javascript files i can include? if i go above it, what happens?
i've got a page now with 40+ included js files.
IE has a limit of 31 style sheets (there are ways around that) but is there a limit to how many javascript files i can include? if i go above it, what happens?
i've got a page now with 40+ included js files.
I tried it myself and can now say that you can safely import and execute at least 200 JavaScript files in your HTML via script
tag with the src-attribue
with the following browsers:
Due respect, I think you're asking the wrong question. The correct question is: "I have 40+ JS include files...how do I fix it?"
Check out Google's article on reducing http round-trips, and the benefits of doing so. Combine, minify and deliver your files via gzip whenever possible.
The page not working is one concern, and a valid one...but why not side-step it and greatly improve your users' load time while you're at it by combining and minifying those files now, before you approach any limit? For mobile users round-trips are especially painful, but there's no reason not to offer a more optimal load experience to all your users.