Free Online Javascript Optimizer

Bookmark and Share
 
 
Optimizing Google Adsense code
 

If you're compressing Google Adsense code, below shows a quick guide as to what parts of the code you need to delete before using our optimization tool. Failure to remove the unnecessary comments from your code may result in your javascript code no longer working or being displayed incorrectly after optimizing. As always we recommend you back-up copies your original javascript code before using the optimization tool.

 

Code to be removed is highlighted in orange text below.

 
 
  <script type="text/javascript"><!--
google_ad_client = "pub-12345678910111213";

/* my_google_ad_name 180x150, created 14/02/09 */
google_ad_slot = "1234567890";
google_ad_width = 180;
google_ad_height = 150;

//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
 
 

Many other javascript codes: scripts and affiliate banners ads, etc, do at times have unnecessary comments added. The best way to remove these comments before optimizing here, is to use a colour-coded html editor. Many paid versions are available online & we'll post links here as soon as we've found the best out there.

 
As always if you've backed up your original javascript code as recommended, there should be no problems experimenting with it, worry free.
 
 
 
 
 
Insert Original Javascript
Kb: Status:

Optimized Code
that's good java!
Kb: Saved: Saved: %  
 
 

 
How to Use
Simply copy the original javascript code from your webpage's source code, paste into the 'Insert Original Javascript' text box, and then click 'Optimize'. Once optimized your compressed code will appear in the 'Optimized Code' box. Simply select all the code, copy and then paste back into your webpage. And that's it! The '% Saved' box will tell you how much has been shaved off your code. See below for essential Hints & Tips
 
 
 
 
Hints & Tips
 
BEFORE using the javascript optimizer tool please read all info displayed on this site!
 
 
ALWAYS be sure to back-up a copy of your original javascript code before editing!
 
 
If you're unfamiliar with Javascript, javascript code starts with: <script type="text/javascript"> and ends with </script> Be sure to highlight and copy both tags and everything that's inbetween (as shown above), it will ensure you have copied the whole of the javascript code you want to compress.
 
 
Keyboard Shortcuts: (bottom left of keyboard)
Select All text: Ctrl and A together
Copy Text: Ctrl and C together
Paste Text: Ctrl and V together
 
 
 
Good Java Links
Multi Purpose Squeegee & Scraper tool
 
The Original American Chip Spice
 
 
 
 
 
IMPORTANT: BEFORE using the Javascript Optimization tool ALWAYS be sure to back-up a copy of your original javascript code. Visitors are advised to read and understand all information relating to javascript compression and optimization before using the optimization tool. The quality of the javascript optimization available from these webpages is dependant on the type and style of coding used. This javascript optimizer tool is provided free to all online visitors, and is used at visitors own risk. Javascript Optimizer.co.uk accepts no responsibility for any misuse of or coding errors resulting in the use of the Javascript Optimization tool.