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

Add option to have plugin disabled by default #68

Open
arnowelzel opened this issue Jan 9, 2021 · 0 comments
Open

Add option to have plugin disabled by default #68

arnowelzel opened this issue Jan 9, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@arnowelzel
Copy link
Owner

Also see: https://wordpress.org/support/topic/only-enabling-the-plugin-on-selected-pages/

Eventhough the plugin only adds two additional resources some people prefer maximum possible optimization and like to have the plugin only active on pages which need it.

One solution might be to add an advanced option which reverses the meaning of the post/page specific "disable" option - instead of disabling the plugin it will enable it if checked for a specific post/page.

An automatic solution is not possible since the plugin will uses the final output buffer to add data-lbwps- attributes to image links - but this happens after the script and style queue was already processed by WordPress.

@arnowelzel arnowelzel added the enhancement New feature or request label Jan 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant