Editing javascript in header
-
I want to add async attributes to certain scripts that are causing a slow render in the head of my page, suggested by google page insights. Opening the page source I can see
<script type=’text/javascript’ src=’http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js?ver=1.3.2′></script>
<script type=’text/javascript’ src=’wp-content/plugins/mailchimp/js/scrollTo.js?ver=1.3′></script>and any other scripts I want to add my async attribute too. But when I attempt to edit the header file on the theme editor, its
<script type=”text/javascript” src=”<?php bloginfo(‘template_url’); ?>/js/font_museo_sans.js”></script>
<script type=”text/javascript” src=”<?php bloginfo(‘template_url’); ?>/js/jquery.cycle.all.min.js”></script>
<script type=”text/javascript” src=”<?php bloginfo(‘template_url’); ?>/js/scrolltopcontrol.js”></script>
<script type=”text/javascript” src=”<?php bloginfo(‘template_url’); ?>/js/preload.js”></script>Can anyone point me in the direction of information regarding editing this in the header? Thank you
The topic ‘Editing javascript in header’ is closed to new replies.