Support » Plugin: PDF Embedder » Unnecessary enqueue in frontend

  • Resolved Biranit



    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=’; 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.



    • 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


    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,


    Plugin Support WP-PDF Support


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



    Thank you 🙂

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