Javascript is one piece of code which consumes a lot of time for loading of the page as its server needs to be connected. One can reduce the loading time by keeping the javascript with in the template of the blogger itself. Have a look where you need to load the template. Remember to save All your JavaScript codes inside your templates just above </head> using the code below :-
<script type='text/javascript'>
//<![CDATA[
Paste Your JavaScript Code Here
//]]>
</script>
Just note that the coloured place in the post where it is written Paste Your JavaScript Code Here is the place where you must paste the JavaScript code that you use in your template by linking to an external site.
Now question arises that how one is going to find the Javascript which is linking to the outside page and for that one can undertake the following action:
- Visit Blogger template and remember to check “expand widget templates” box at top-right corner and probably now it is changed as blogger has made it more simpler for web developers.
- Search for <script type='text/javascript'> inside your template and than open that link in a browser. You will see large piece of complex text in the window and that is your JavaScript code. Simply copy it and paste it in the code shared above. Replace All JavaScript codes inside your template with the code above, ensuring that you have extracted the code from the link and pasted it in the code above.
Result
Your all Javascripts will start getting loaded from your template itself which will speed up the whole process as Google is going to give more marks to that website which loads faster and will be sitting at higher places in its search engine index queries.