WordPress.org

Ready to get started?Download WordPress

Ideas

CSS and Javascript Handling

  1. Thomas S. Butler
    Member

    12345

    I've noticed that all of the CSS and Javascript is loaded for every page for every plugin... even when there ar no plugins on the particular page or post! This is fine if you're running a tiny little site, but if you're running a major site with a bunch of plugins... it become very problematic.

    You should have a utility that loads only the necessary plugin code and css files based on page/post use only.

    Posted: 3 years ago #
  2. Mark / t31os
    Moderator

    12345

    That's down to the plugin authors to write their plugins in a manner that only loads scripts or styles when they are needed, WordPress does already provide enough appropriate hooks for plugin authors to do this, if they're not doing it, ask them why.

    Posted: 3 years ago #

RSS feed for this topic

Reply

You must log in to post.

  • Rating

    12345
    4 Votes
  • Status

    This is not a core suggestion