This post explains how to host javascript(.js) files in blogger itself without considering the bandwidth and amount.
"How to host Javascript files for Free with unlimited bandwidth ?" is one of the most frequently asked questions in the blogger community.
There are tons of hosting providers out there who can help you host your .js files for Free, but all have some bandwidth limitations and also they are not very reliable.
Google sites can be used to host your javascipt files for free in your blog, but the problem is even google sites have bandwidth limitations. So, if the bandwidth exceeds at a particular moment, the javascript files don't load which results in complete template mess up.
Here is a simple trick to avoid the mess:
1. Just do not upload your java script files to any hosting providers. Collect or write your java script that you want to use. If you have java scripts in you blog but do not know where are they in your template then Log into your blogger account and go to Design>Edit HTML and check Expand Template Widgets. And search for ‘text/javascript’. Then copy the url of the script where it is hosted and copy them into your browser and download them.
2. Open the script with Wordpad (not notepad) and copy that code.
3. Paste the code in your blogger template just where you want to use the script like this:
4. If you want to use more than one template then just repeat the steps from 1 to 3.
5. Finally save template.
Advantages:
» No limitations on file size
» No limitations on bandwidth
» Loading page very quickly as files are stored within blogger itself
"How to host Javascript files for Free with unlimited bandwidth ?" is one of the most frequently asked questions in the blogger community.
There are tons of hosting providers out there who can help you host your .js files for Free, but all have some bandwidth limitations and also they are not very reliable.
Google sites can be used to host your javascipt files for free in your blog, but the problem is even google sites have bandwidth limitations. So, if the bandwidth exceeds at a particular moment, the javascript files don't load which results in complete template mess up.
Here is a simple trick to avoid the mess:
1. Just do not upload your java script files to any hosting providers. Collect or write your java script that you want to use. If you have java scripts in you blog but do not know where are they in your template then Log into your blogger account and go to Design>Edit HTML and check Expand Template Widgets. And search for ‘text/javascript’. Then copy the url of the script where it is hosted and copy them into your browser and download them.
2. Open the script with Wordpad (not notepad) and copy that code.
3. Paste the code in your blogger template just where you want to use the script like this:
<script type='text/javascript'>
//<![CDATA[
PASTE THE JAVASCRIPT CODE HERE
//]]>
</script>
4. If you want to use more than one template then just repeat the steps from 1 to 3.
5. Finally save template.
Advantages:
» No limitations on file size
» No limitations on bandwidth
» Loading page very quickly as files are stored within blogger itself