Asynchronous Javascript loading

  • strikecom
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
10 years 3 months ago #41610 by strikecom
Hi,
I would like to increase my page speed so I want to insert several "async" attributes to the javascript files being loaded. The question now is, where to find the right place to put them in. E.g. I cannot find the line in code where this is taking place:
Code:
<script type="text/javascript" src="http://www.xn--zahnarztpraxis-knigstein-0oc.de/modules/mod_hot_full_carousel/js/jquery.easing-1.3.js"></script>

Also, some old versions of the internet explorer do not support the placeholder attribute which is used in the contact form. I would like to use the following fix, but I don't know where to put the javascript code:
bavotasan.com/2011/html5-placeholder-jquery-fix/

Help is greatly appreciated!

Cheers

Robin

Please Log in to join the conversation.

More
10 years 3 months ago #41618 by ivan.milic
All you want is in index.php of template. There you will find script tags to put that attribute but I must disappoint you that will not be good for jquery , async is good for something that is not dependency of something else and it is not problem to execute some time after page loads. Putting that on jquery script tag will make mess, you can see.

For other thing you can put repairing script just above </head>, but better. (you put code under box titled JAVASCRIPT on link you gave us there)

You can separate javascript in it in js file and link it with src attribute instead of putting code directly inside script tag.

Please Log in to join the conversation.

Time to create page: 0.149 seconds
Powered by Kunena Forum