Use a CDN to improve your website’s performance
“80-90% of the end-user response time is spent downloading all the components in the page: images, stylesheets, scripts, Flash, etc. Rather than starting with the difficult task of redesigning your application architecture, it’s better to first disperse your static content. This will achieves a bigger …
How to reduce the size of JavaScript & CSS file?
Compress JavaScript / CSS file with the help of gzip:- With the help of php ob_start() function we can create gzip file for JavaScript. <?php if (substr_count($_SERVER['HTTP_ACCEPT_ENCODING'], ‘gzip’)) ob_start(“ob_gzhandler”); else ob_start(); ?> We can use above code at the beginning of the JavaScript and <? …
How to get domain name from URL using javascript.
Use following javascript function to get domain name from URL. function fnGetDomain(url) { return url.match(/://(.[^/]+)/)[1]; } For ex: <script language=”javascript”>fnGetDomain(“http://mail.google.com/mail/?source=navclient-ff”);</script> will return “mail.google.com”
Edit whatever you want on any page – Images, Texts
>Open any web page, clear the address bar, and paste the code: javascript:document.body.contentEditable=’true’; document.designMode=’on’; void 0; and hit enter. Feel free to edit whatever you want on the page. With Firefox, you can even edit and save the modified pages to your computer.

