WordPress.org

Forums

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

  1. Daniele Mte90 Scasciafratte
    Member
    Posted 2 years 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 2 years 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. Daniele Mte90 Scasciafratte
    Member
    Posted 2 years 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 2 years ago #

    Are you familiar with how WP actions / filters work?

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

    Posted 2 years ago #

    Marking this as resolved due to inactivity.

  6. Daniele Mte90 Scasciafratte
    Member
    Posted 2 years 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?

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Easy Digital Downloads
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.