- Posts: 14
- Thank you received: 0
Asynchronous Javascript loading
- 
        strikecom
 Active member
- 
            
				 Topic Author Topic Author
- New Member
- 
              
        Less
        More
        
            
    
        
            
        
                11 years 1 month ago                #41610
        by strikecom
    
    
            
            
            
            
            
                                
    
                                                
    
        Asynchronous Javascript loading was created 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:
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
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.
- 
        ivan.milic
 Support Staff
- 
            
				  
- Moderator
- 
              
        Less
        More
        
            
    
        - Posts: 14116
- Thank you received: 1639
            
        
                11 years 1 month ago                #41618
        by ivan.milic
    
    
            
            
            
            
            
                                
    
                                                
    
        Replied by ivan.milic on topic Asynchronous Javascript loading            
    
        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.
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.318 seconds    
    