JS & CSS loaded where it should not
-
Hello,
Your plugin fetches a lot of CSS and JS files on custom post type screens where it is not needed, e.g. on post.php, post-new.php of a CPT, I can at least see following CSS files:
choosen-css
,
jqui-css
,font-awesome
,wpdm-bootstrap
,wpdm-bootstrap-theme
,wpdm-admin-styles
. Idem on the dashboard amongst others… That’s quite an overload for something that is not needed on those admin pages. And it will conflict with other plugins’ assets or custom code, like it did with mine.Please enqueue conditionnaly according to the global php variables pagenow/typenow, or something in that vein.
Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘JS & CSS loaded where it should not’ is closed to new replies.