Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subscription widget's scripts and styles should not load when widget is inactive #20

Closed
natebot opened this issue Mar 29, 2014 · 0 comments

Comments

@natebot
Copy link
Contributor

natebot commented Mar 29, 2014

In v3.0-vip the Sailthru_Subscribe_Widget enqueues js and css, and registers ajax listeners even if the plugin is not active. These file requests, etc. should only happen if the widget is in use. See Akismet_Widget for how it conditionally loads css based on widget activation.

Ideally the supporting js, css, and ajax listeners should only be available for pages with the signup form and not sitewide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant