S0.wp.com In WordPress : How To Disable it

After switching one of my sites to https this morning, WhyNoPadlock listed s0.wp.com as not found, hence making the site not to show padlock in the address bar. After googling it up, I discovered that it’s connected to the popular Jetpack plugin.

Instead of deactivating the plugin, I added the code below to my functions.php and that’s how the problem was fixed.

The code simply removes devicepx-jetpack.js from WordPress, which is meant to serve bigger avatar images for high resolution screens.

function remove_devicepx() {
    wp_dequeue_script( 'devicepx' );
add_action( 'wp_enqueue_scripts', 'remove_devicepx');
add_action( 'admin_enqueue_scripts', 'remove_devicepx' );

If you are getting an “Eliminate render-blocking JavaScript and CSS in above-the-fold content” warning from Pagespeed Insights due to s0.wp.com, you can also fix it by making use of the same code.

Source : https://wordpress.org/support/topic/remove-render-blocking-javascript-devicepx-jetpack-js/

Recommends :



This will come handy for my next project… Thanks the ogbongebro :+1:

1 Like

Please all rise for the boss @jidetheblogger. This is very informative…