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

Each format should use different JS handle to prevent caching #393

Open
mnelson4 opened this issue Oct 25, 2024 · 0 comments
Open

Each format should use different JS handle to prevent caching #393

mnelson4 opened this issue Oct 25, 2024 · 0 comments

Comments

@mnelson4
Copy link
Owner

Caching plugins sometimes use the "handle" used for wp_enqueue_script as a key for their cache. So when our epub and PDF formats both use the handle "pmb_js" or whatever it is, we get the wrong JS loading on the print page.
To prevent this, each format's JS handle should be different.
I'll also need to update the custom designs I've done for clients though to use these new script handles.

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