Support » Plugin: Jetpack by WordPress.com » About removing devicepx.css for my website

  • Thank you for reading my question

    I had searched how to remove devicepx.css on Google and WordPress forum, and many of them tell me that:

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

    but I found that it is no use for my website, I could not figure out what wrong with this. Could you help me?

    Note: I use Webpagetest after I add this code to my functions.php file, but It seems that my website still load https://s0.wp.com/wp-content/js/devicepx-jetpack.js?ver=201748 file.

    My website is: http://www.yannyann.site

    Thank you very much

    • This topic was modified 1 week, 3 days ago by  yannyann.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Sorry it seems like I make a wrong with title….

    devicepx.css -> devicepx.js

    Plugin Contributor Stefania Mattana

    (@erania-pinnera)

    Hi @yannyann! Sorry for the delay in getting back to you.

    Have you figured out the issue you mentioned in your first message? If you still need help do let us know and we’ll be happy to assist you 🙂

    Hello~
    Thank you for your relying~~

    I have not solved my problem yet, Could you help me?

    Thank you very much

    Plugin Contributor Stefania Mattana

    (@erania-pinnera)

    @yannyann It looks like there isn’t any devicepx on your site right now, can you confirm this to me?

    If you still see it on your end, I suggest to flush your cache, and the Autoptimize cache too 🙂

    Really!
    Maybe I close some module in Jetpack and lead to no devicepx.js loading.

    Plugin Contributor Stefania Mattana

    (@erania-pinnera)

    Let me know how it goes then 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this review.