WordPress.org

Ready to get started?Download WordPress

Forums

Easy Digital Downloads
[resolved] [Feature] JS and CSS loaded if needed (6 posts)

  1. Mte90
    Member
    Posted 11 months ago #

    I have see that the css and the js of this plugin are loaded in all the page even if it is not used the plugin.
    It's possible to insert this file only when needed?

    http://wordpress.org/extend/plugins/easy-digital-downloads/

  2. Pippin Williamson
    Pippin's Plugins and Plugin Reviewer
    Plugin Author

    Posted 11 months ago #

    No because the JS / CSS is required for any purchase button that you have placed on a post or page, and there is not an adequate way to detect those.

    Our CSS / JS is very minimal, so it will have a very minor impact on performance.

  3. Mte90
    Member
    Posted 11 months ago #

    but if i use the plugin only on a page? there is a code for disable in the others?

  4. Pippin Williamson
    Pippin's Plugins and Plugin Reviewer
    Plugin Author

    Posted 11 months ago #

    Are you familiar with how WP actions / filters work?

  5. Pippin Williamson
    Pippin's Plugins and Plugin Reviewer
    Plugin Author

    Posted 11 months ago #

    Marking this as resolved due to inactivity.

  6. Mte90
    Member
    Posted 11 months ago #

    I'm sorry I was on vacation and could not answer the question for the hook.
    I know the wp filter/action/hook, which must be deactivated?

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.