Skip to main content

Hide Javascript and CSS Codes

Make sure that you send JavaScript and CSS to external files. Therefore, hide your javascript and css codes! There is no reason to clutter up your code and increase your page sizes. If you have the same JavaScript for a menu and the same CSS on each page, not only is that taking up space on your server, your transfer rate will be higher than it needs to, but you are also cluttering up Google's index. With over 110,000 servers running their index, Google estimates that with duplicate content, scraper sites, repeated JavaScript and CSS information, their index size is 28% larger than it has to be. That is about 30,000 servers.



Sample of external JavaScript code:

<script src="ExternalJS_1.js" language="javascript" type="text/javascript">

</script>



Sample of external CSS code:

<link href="style.css" rel="stylesheet" type="text/css">



Avoid CSS tricks such as keyword stuffing, etc.

Comments