Support » Developing with WordPress » Can you remove a plugin’s JS rendering, with a function?

Viewing 8 replies - 16 through 23 (of 23 total)
  • The list of all enqueued scripts.
    And the text ‘Inside the wporg_11560356_dequeue_script function call‘ at the very least.

    If you don’t see it on the home page, it is a possibility that the text is getting hidden by some element like header, logo or menu. In that case try to find it in the page-source by pressing Ctrl+U, and doing a search for this text using Ctrl+F

    The widgets.js URL does not appear on the homepage in the source code. I did find that very bizarre, given that it appears in GTMetrix in the warning about expiring times.

    DOes it not appear in both the lists of enqueued scripts i.e before and after dequeuing?
    Do you see the text ‘Inside the wporg_11560356_dequeue_script function call’ on the homepage?

    No it does not show on screen or in the source code.

    Try on other pages.
    If the text ‘Inside the wporg_11560356_dequeue_script function call’ is not displaying either, this means the function is not being hit.
    Do you mind sharing the url of the website?

    Sure thing. https://www.79design.org.uk.
    would it help to try it via the page id rather than is_front_page? Even tho it is set as the front page?

    It looks like your site has caching enabled. You’d need to disable that first and clear all the cache and then try.

    if you can try further by yourself r have someone else to guide you, then you can try it now.
    Else wait for tomorrow because I am going to logoff now. Sleep time 🙂

    It has the same issue when logged in, as that code doesn’t show up.
    When logged in it is setup not to cache, but I did clear it before you saw it too.

    Talk soon.

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘Can you remove a plugin’s JS rendering, with a function?’ is closed to new replies.