Support » Plugin: PDF Embedder » Unnecessary enqueue in frontend

  • Resolved Biranit

    (@biranit)


    Hi,

    I am trying to optimize my website, and noticed this in the header of every page:

    <link rel=’stylesheet’ id=’pdfemb-gutenberg-block-backend-js-css’ href=’https://www.zman.co.il/wp-content/plugins/pdf-embedder/css/pdfemb-blocks.css?ver=842523a2b27b7818daa5e42b0a437850&#8242; type=’text/css’ media=’all’ />

    1) We have Gutenberg disabled;
    2) This is supposed to be a CSS file for the backend, there should be no reason for it to be added to the frontend.

    I looked at your code, and in the file ./pdf-embedder/core/core_pdf_embedder.php, you have functions there that relate only to the admin area, so you need to add if (is_admin()) to them, otherwise they run on the frontend as well needlessly.

    Thanks,

    Bira

    • This topic was modified 11 months, 3 weeks ago by Biranit.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support WP-PDF Support

    (@wppdfsupport)

    Hi @biranit,

    Thank you for bringing this oversight to our attention as well as the solution! I will forward this to the developers so they can implement this on the next update.

    Thank you again,

    Emma

    Plugin Support WP-PDF Support

    (@wppdfsupport)

    This issue has been resolved with v.4.5 update to the free plugin and v.4.4 of the paid plugins.

    Biranit

    (@biranit)

    Thank you 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Unnecessary enqueue in frontend’ is closed to new replies.