Unlimited hosting for scripts in blogger template
12/19/2011 blogger 23 comments nhamngahanh
Many many of you complaint my host 110mb.com not working . Yes ,it's not a stable and reliable free hosting . So in this post ,I will tell you solution to fix this problem . The idea is very simple , we can host scripts in blogger itself .
This solution will make your template hard to read ,not good for SEO (as SEO expert said) because we included all scripts in template file . But hosting scripts in blogger will increase the loading speed ,and it work 100% ,don't need to worry about downtime .
1,If you are using a template from SimplexDesign ,open template in a word editor such as notepad ,wordpad ,notepad ++ ...
2,Make a search for this term <script ,it will show you all the place where scripts are embedded to your template .
Take a closer look ,if the script is hosted in another host , you will see something like this :
<script src='http://hosting....../xxxx.js' type='text/javascript'/>
The src attribute in <script statement above indicate the URL of javascript file .
Copy this URL http://hosting....../xxxx.js and paste it in browser window

It will show you the content of js file as picture above ,or a dialog which asking for download js file .
If you download the js file ,open it in a word editor
3,Insert the script in js file into blogger template by using this structure :
<script type='text/javascript'>
//<![CDATA[
insert content of js file here
............
//]]>
</script>
After inserting the script to blogger directly ,delete the line
<script src='http://hosting....../xxxx.js' type='text/javascript'/>
that we found in step 2 .
Do this for the rest .
4,Save template and upload it to blogger .
That's all .
I hope with this tip ,we can forget the problem with free javascript hosting . Yes,if you have a hosting ,you can host js file in your host ,it better for SEO .
This solution will make your template hard to read ,not good for SEO (as SEO expert said) because we included all scripts in template file . But hosting scripts in blogger will increase the loading speed ,and it work 100% ,don't need to worry about downtime .
How to do ?
1,If you are using a template from SimplexDesign ,open template in a word editor such as notepad ,wordpad ,notepad ++ ...
2,Make a search for this term <script ,it will show you all the place where scripts are embedded to your template .
Take a closer look ,if the script is hosted in another host , you will see something like this :
<script src='http://hosting....../xxxx.js' type='text/javascript'/>
The src attribute in <script statement above indicate the URL of javascript file .
Copy this URL http://hosting....../xxxx.js and paste it in browser window

It will show you the content of js file as picture above ,or a dialog which asking for download js file .
If you download the js file ,open it in a word editor
3,Insert the script in js file into blogger template by using this structure :
<script type='text/javascript'>
//<![CDATA[
insert content of js file here
............
//]]>
</script>
After inserting the script to blogger directly ,delete the line
<script src='http://hosting....../xxxx.js' type='text/javascript'/>
that we found in step 2 .
Do this for the rest .
4,Save template and upload it to blogger .
That's all .
I hope with this tip ,we can forget the problem with free javascript hosting . Yes,if you have a hosting ,you can host js file in your host ,it better for SEO .
Tags: blogger
Sharing is sexyRelated posts
23 comments for this post
Here are some rules for commenting on Simplex Design blog :
1,Search first ,then ask question . You will get the answer faster
2,All comments except spams are welcome .
3,Please make all requests in English .
4,Do not use generic titles such as Admin or Mod .This confuses readers



Nice...
ReplyDeletewould make the loading longer ? Which is better, than using free hosting....??
ReplyDelete@Erwin : hosting scripts in blogger template will make page load faster,because it doesn't need to load script from other sources ,and google work better than other hosts ^^. But the main disadvantage of this method is SEO ,adding scripts into template file will make Google's bot hard to crawl and index .
ReplyDeleteIf you have a private hosting that work stable and fast ,you can host your own script files in that . It's the best solution I recommend .
nhamngahanh: Solution for seo is put the javascript on the bottom of template..
ReplyDeletethanks for nhamngahanh's posting & Firdaus' comment. very useful :)
Delete@Muhd Firdaus : thanks for your suggestion ^^ keep commenting ,guys ^^
ReplyDeletethanks, its great tips
ReplyDelete@nhamngahanh: you are wrong, when hosting js files on a server, they will be saved to Web Browser cache. So, the next time you go to that website, Web Browser will load js files from Browser cache, not from server -> faster loading speed. If you insert javascript directly to blogger template, they will not be cached.
ReplyDelete@Noct : Thanks for your comment . I'm not sure on Browser cache so I will take note on your comment . I think cached can be very helpful if your server is good ,but it will be a disaster if we use a free server ,and the down-time is above 10% .
ReplyDeleteWhat if we are hosting to "google code" ?
ReplyDeletebecause,,, all my js uploaded there.
whether "google code" could be down as well...
@Gallery Celebrity : You can host in anywhere you like , Google code can be a good solution . But in my opinion ,I do not recommend ,because all js files of Simplex's template were deleted before when host in Google Code .
ReplyDeleteThey are a free hosting service for new/unique projects ,and they must be helpful for community . All files which are hosted in Google Code that violate these rules will be deleted .
wow ... I do not know if would be removed ...
ReplyDeleteOkay I will upload directly to blogger.
gratitude for his science friends ... : D
can not ask for backlinks for my blog .. hehe ... : D
very good post but can you tell me that how to host scripts in a way that when that script run our blog also run not a dropbox..ok
ReplyDeleteK for Knowledge.com
@Mairaj Pirzada : Don't really understand your question . The tutorial for hosting scripts are all in this blog and you can make a search for more .
ReplyDeletehi...i need tabcontent.js because it´s doesn´t load by http://dinhquanghuy.110mb.com/tabcontent.js
ReplyDeleteDon't be lazy every one . Just google , and you will get the js file
ReplyDeletebro.. do something templates are not loading........
ReplyDeleteevn i tried code frm google by following ur this tutorials bt not working again
i don´t lazy. i just google but i don´t get your tabcontent.js file. It´s appears many tabcontent.js but are there yours tabcontent.js file???
ReplyDeleteplease, help me. i need your tabcontent.js file.
ReplyDelete@administrador : the first result from google :
ReplyDeletehttp://www.dynamicdrive.com/dynamicindex17/tabcontent.htm
is this okay for you ?
@se7en : which step do you get stuck in ?
wel thnq dude 4 uploading again all files
ReplyDeletethank's for your information,Huy Dinh Quang..you have amazon store template..?share to me please...
ReplyDelete@nhamngahanh and @Muhd Firdaus
ReplyDeleteOkay. Firdaus have suggested something when it comes to SEO. What does it mean by "keeping the scripts at the bottom of the template"?? Please help.:)