• 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)
  • Plugin Contributor W3 Eden, Inc.

    (@w3eden)

    We kept the admin scripts inside a conditional statement, so that they don’t load where they are not required. May you please give me the URL where it is loading for you but not required, we shall re-evaluate the condition.

    Thread Starter Arnaud Coolsaet

    (@bsop)

    Then something is not working… I can see wpdm scripts and styles on almost every admin page: /wp-admin/index.php, /wp-admin/edit.php, /wp-admin/post-new.php?post_type=news, and even /wp-admin/themes.php for example…

    using WP 4.8.1 AND 4.7.5 with WPDM 2.9.54

    Plugin Author Shahjada

    (@codename065)

    Resolved ( v2.9.55 )

    Thread Starter Arnaud Coolsaet

    (@bsop)

    Great, thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘JS & CSS loaded where it should not’ is closed to new replies.