What are the scripts I have to remove from my site to get this on top of google at my location, I came to know that scripts might be affects on google results
There is no magic formula to getting well ranked on Google - or even getting ranked at all. As for removing scripts, wherever did you get that idea?
1 Like
If the scripts are unnecessary, removing them would be a good idea just in general practice, and also from a page-load speed perspective, but normally if you’re looking at doing that you’ve already got a specific script in mind to remove…
We can try the following code for Remove Scripts
class Alter_WP_Scripts extends WP_Scripts{
function do_item( $handle, $group = false ){
if( 'panda-pods-repeater-scripts' == $handle ){
$handle = false;
}
return parent::do_item( $handle, $group );
}
}
if( !is_admin() ){
add_action( 'wp_loaded', function() {
$GLOBALS['wp_scripts'] = new Alter_WP_Scripts;
});
}
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.