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

  1. Mte90
    Posted 1 year 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?


  2. 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
    Posted 1 year ago #

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

  4. Are you familiar with how WP actions / filters work?

  5. Marking this as resolved due to inactivity.

  6. Mte90
    Posted 1 year 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


No tags yet.