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

Performances: Enqueue the plugin resources only when necessary #35

Open
audrasjb opened this issue Sep 17, 2021 · 0 comments
Open

Performances: Enqueue the plugin resources only when necessary #35

audrasjb opened this issue Sep 17, 2021 · 0 comments

Comments

@audrasjb
Copy link
Contributor

audrasjb commented Sep 17, 2021

For better performances, the CSS and JS resources of the plugin should be enqueued only when they are needed.

Not sure what's the best option here, but it's possible to perform a regexp on the_content and to enqueue the resources only when a link to wikipedia is used in the content of the post.

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

No branches or pull requests

1 participant