tylerlong / google-code-prettify

Automatically exported from code.google.com/p/google-code-prettify
Apache License 2.0
0 stars 0 forks source link

Is it ok to merge all the js into one? #89

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am using prettify and it works like a charm.

The only thing I concerned is loading speed, I have pages that have a lot of 
code, and different languages displayed on the same page. load the lang-* 
scripts make more http requests, so I want to merge them together.

Is it ok to simply merge prettify.js + lang*.js to one js file? Will it 
work?

I tried and it seems to work but I want to make sure.

Regards,
-Zhongfang

Original issue reported on code.google.com by real...@gmail.com on 24 Aug 2009 at 1:17

GoogleCodeExporter commented 9 years ago
It should work fine.  The lang*.js files need to come after prettify.js in the 
merged
file.

Original comment by mikesamuel@gmail.com on 25 Aug 2009 at 6:37

GoogleCodeExporter commented 9 years ago
THanks for confirm

Original comment by real...@gmail.com on 27 Aug 2009 at 3:17