Hello to all my visitors, its been few days that i haven’t wrote anything on best2know.info, but today i have bought something for you all that will help you very very much to keep your blog healthy. Now you all might thing how ? . So here’s my today’s trick i will teach you how host JavaScript in blogger.
Why to host JavaScript in blogger?
Earlier their used to Google pages but now Google has closed them so we cannot use them. Plus the problem with Google pages was that it has a bandwidth limit. so when more visitors some functions of the site wont load then visitors are nervous and some time they don’t come back. So its bad for the blog. we cant also keep it on sites.google.com because it will set the scripts to download and not view.
Plus if you host it outside the server fails or take too much time too load again that causes problems so now we need to host JavaScript in blogger to save time bandwidth and too load fast.
So here’s the trick :
- Login to your dashboard.
- Click on Design and then on EDIT HTML.
- Then Find for </head> and just above this add the below code :
<script type=’text/javascript’>
//<![CDATA[
PASTE THE JAVASCRIPT CODE HERE//]]>
</script>
- Now just Replace the PASTE THE JAVASCRIPT CODE HERE with your javascript.
- Click on Preview i think now you can see no problem in Javascript and then click on Save.
Too add more then one JavaScript repeat the process.
Benefits of this trick:
» No file size limitations
» No bandwidth limitations
» Super fast page loading (because files are stored in blogger itself)
Bang Nonki says
GREAT!
It helps solving my problem.
Thank you so very much. You're a genius!
Regards, Bang Nonki
Ritesh Sanap says
Thanks For the Compliment But I M not an Genius.
JavaScript Media Player says
very cool & good js tip, thank you very much for sharing.
Ritesh Sanap says
@JavaScript Media Player
Thank you very much !
ambreen11 says
What’s up to every body, it’s my first visit of this blog; this web site contains awesome and actually good data for readers.