Minify your JavaScript code, for faster loading and improved performance.
Below is an example of the original JavaScript Minifier and the result.
Original JavaScript Minifier Examplevar yttagsCom = function() { // this is the callback url to store the impression via ajax!! this.defaultStoreUrl = '/yttags/imp.gif'; this.defaultStoreA = '/yttags/i.gif'; if (((typeof ezJsu !== 'undefined') && ezJsu === true) || ((typeof _ez_sa !== 'undefined') && _ez_sa === true)) { this.defaultStoreUrl = '//g.yttags.net/yttags/imp.gif'; this.defaultStoreA = '//g.yttags.net/yttags/i.gif'; } this.getStoreImpressionUrl = function() { if (typeof _ezImpStoreUrl != 'undefined') { return _ezImpStoreUrl; } else { return this.defaultStoreUrl; } };
And an example of how the online JavaScript Minifier works.
JavaScript Minifier Resultvar yttagsCom=function(){this.defaultStoreUrl='/yttags/imp.gif';this.defaultStoreA='/yttags/i.gif';if (((typeof ezJsu!=='undefined')&&ezJsu===true)||((typeof _ez_sa!=='undefined')&&_ez_sa===true)){this.defaultStoreUrl='//g.yttags.net/yttags/imp.gif';this.defaultStoreA='//g.yttags.net/yttags/i.gif';}this.getStoreImpressionUrl=function(){if (typeof _ezImpStoreUrl!='undefined'){return _ezImpStoreUrl;}else{return this.defaultStoreUrl;}};