Brian's progress on Specialty Gamer

« New 2009 Calendar Banners w/ mouseover expand effect | Prog Log Home | Changed Online/Offline status looks on board »

Compressing JavaScript files breaks them

I spent some time today doing some webpage load speed tests to see how fast certain pages load.

As I've added more and more, I kind of had the concern that there was so much on there it would take a long time for users with dialup and slow connections.  Some graphic files I added recently I forgot to compress, which I did using Ignite.  I noticed from the results of the test, it was mentioning I could save notable file size by compressing various CSS and JS files.  So I did a search for JavaScript compression and I found JavaScript Compressor website.  With that, I copied the code in my JS files, entered it into the online form on JavaScript Compressor, and some results came out in a second form on the bottom - which I cut and pasted into my JS files.  Many of them had their file size cut in half!  As far as I can see, the file compression is by removing all the carriage returns and comment tags.

Later on today, however, I noticed that some of the functions on pages that required those JS files were not working...  So I ended up having to refresh all those JS files to their original formatted code.  The file sizes are back to being big again, but everything seem to work again now.

Oh yeah, and I also deleted the SEGA category in Features.  Now that the Talk Boards have been open for a while, the SEGA category isn't necessary and also its a subject that overlaps and could have articles placed in other categories anyways.  Besides that, there was only one article under there from February - nearly a year ago.

Social Bookmarking
Bookmark to: Facebook Bookmark to: Digg Bookmark to: Del.icio.us Bookmark to: Slashdot Bookmark to: Yahoo Bookmark to: Google Bookmark to: Technorati Information What are these icons for?

Post a comment

NOTE: All SPAM comments will be reported and deleted!!

Specialty Gamer is on FaceBook!

Authors


Interested in becoming an author for Specialty Gamer? Use the Contact Form to get in touch!

All website graphics and style created/edited by Brian Moy (unless noted), Copyright © 2007-2010 SPECIALTY GAMER LLC and may not be copied and/or used on other websites without permission. All other writing/content licensed individually by author's choice - in general may not be copied/reposted for profit, or without at least credit or link back to the author/website.


Powered by Movable Type 4.3-en
 
     
for the newsletter
 

Email:

Name:

Address fields are optional and used ONLY to send your free SpGa gift. None of your info will be sold or shared. Privacy Policy

Address line 1:

Address line 2:

City, State and Zip Code:

Country: (if not USA)



Unsubscribe