I want to combine javascript files together and submit them as one from my site - so these are my code plugins and jquery or other third-party scripts. (I use Google CDN to host jQuery).
I was wondering that this is always guaranteed to be a safe thing. I am not an expert in Javascript, as things like namespacing go, and I was a little worried that it is possible to have something like a namespace construct that could cause a conflict. I am fine believing that javascript is all well-formed from every source.
As far as I know, the tag <script>
essentially just inserts JS in place, as if it were in a file, but I wondered if there were any boundary cases where this is not the case.
I know that file concatenation is something that is common and used by javascript frameworks like Yahoo YUI , but it’s obvious that they have full control over their files.
source
share