How to host javascript on blogger

by Ritesh Sanap on June 21, 2010

How to host javascript on blogger

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 :

  1. Login to your dashboard.
  2. Click on Design and then on EDIT HTML.
  3. Then Find for </head> and just above this add the below code :

    <script type='text/javascript'>

    //<![CDATA[

    PASTE THE JAVASCRIPT CODE HERE

    //]]>

    </script>

  4. Now just Replace the PASTE THE JAVASCRIPT CODE HERE with your javascript.
  5. 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)

Subscribe Now

Simply enter your information into the form below:

Your Privacy is SAFE

Related posts:

  1. How To Show/Hide Text Using JavaScript Toggle Method
  2. Add Button 'Save Blogger Post As Pdf' Blogger
  3. Total Posts and Total Comments Widget
  4. Random Post Widget for Blogger
  5. Fix PNG Image in IE

To keep updated with the latest trends, please do Subscribe For Email Updates.

{ 4 comments… read them below or add one }

Bang Nonki July 1, 2010 at 5:55 pm

GREAT!
It helps solving my problem.
Thank you so very much. You're a genius!
Regards, Bang Nonki

Reply

Ritesh Sanap July 2, 2010 at 7:51 pm

Thanks For the Compliment But I M not an Genius.

Reply

JavaScript Media Player July 25, 2010 at 1:10 pm

very cool & good js tip, thank you very much for sharing.

Reply

Ritesh Sanap July 25, 2010 at 2:58 pm

@JavaScript Media Player
Thank you very much !

Reply

Leave a Comment

Previous post:

Next post: