Javascript Hosting Tricks on Blogger

Written By mohamad erlan efarda on Saturday 16 March 2013 | 21:25


When the most unpleasant moment the javascript file where we store on another host start running out of bandwidth. Blogs are originally seen interactive display will be damaged. Well, this is one weakness bloggers because they do not give us the capacity of disk space, especially those dealing with the javascript file. As an alternative, we use free web hosting, but are usually given bid was not always satisfactory. offered greater storage capacity, but so useless when given bandwidth capacity is not comparable. Well, here I try to share tips to overcome the problem of hosting javascript in blogger, hopefully can help


There are, The Trick of Javascript Hosting in Blogger

1. Change the format of the file extension from. js to. txt
Remember, not all the javascript is called by the ending. js, this is an advantage where we can store and call the javascript file in a text format that are stored in the format. txt

Not all free web hosting services provide the flexibility for us to store the file format. js, so we can outsmart just by changing the extension from. js to. txt

How to call a javascript format. txt file on another host:
<script type="text/javascript" src="your-url.js" />

The invitation can be replaced with

<script type="text/javascript" src="your-url.txt" />


2. Save the javascript code directly in HTML EDIT page
Platform bloggers actually frees us to put the code directly javascipt on Edit HTML page. This way I always managed to apply, but sometimes not very effective when we use javascript code is too long. This way I think is the best one that should be attempted.
For host the JS code directly used in blogger, we can directly use the code below.
<script type='text/javascript'>
//<![CDATA[
Your JavaScript Here
//]]>
</script>
Well, there my tricks and tips to overcome the problem of hosting javascript in blogger, hopefully can help

0 comments:

Post a Comment

Related Posts Plugin for WordPress, Blogger...