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′ 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
- The topic ‘Unnecessary enqueue in frontend’ is closed to new replies.