Current time: 12-05-2020, 07:30 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
JS minifyng
01-05-2012, 12:18 AM
Post: #2
RE: JS minifyng
Wow, I don't know that I've ever seen that many separate files. There are some fringe cases where you can't combine but usually it's a trivial effort of concatenating the files together. You just need to make sure that the order is maintained, the text encoding is the same (no unicode BOM's) and that the relevant files are still loaded before any inline script that depends on it.

If the javascript modifies the DOM then you are best off only combining chunks of code that are referenced from the HTML right after each other and not pull in code files from later in the document in case they depend on something in the HTML in between.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
JS minifyng - hersh young - 01-04-2012, 01:59 PM
RE: JS minifyng - pmeenan - 01-05-2012 12:18 AM
RE: JS minifyng - hersh young - 01-05-2012, 10:13 AM
RE: JS minifyng - pmeenan - 01-05-2012, 11:42 PM
RE: JS minifyng - hersh young - 01-06-2012, 09:26 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)