Support » Plugin: PDF Embedder » Unnecessary enqueue in frontend

  • 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 4 months, 2 weeks ago by Biranit.
Viewing 1 replies (of 1 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

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.