Friday, May 27, 2016

Javascript Hosting Tricks on Blogger


Javascript Hosting Tricks on Blogger | New
When the most unplsant 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 wkness bloggers because they do not give us the capacity of space, especially those dling with the javascript file. As an alternative, we use free web hosting, but are usually given bid was not always satisfactory. offered grter 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 directly in HTML EDIT page
Platform bloggers actually frees us to put the directly javascipt on Edit HTML page. This way I always managed to apply, but sometimes not very effective when we use javascript is too long. This way I think is the best one that should be attempted.
For host the JS directly used in blogger, we can directly use the below.
<script type='text/javascript'>
//<![ATA[
Your JavaScript Here
//]]>
</script>Well, there my tricks and tips to overcome the problem of hosting javascript in blogger, hopefully can help

No comments:

Post a Comment