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

Load public.js conditionally #8

Open
viktorix opened this issue May 9, 2023 · 2 comments
Open

Load public.js conditionally #8

viktorix opened this issue May 9, 2023 · 2 comments

Comments

@viktorix
Copy link

viktorix commented May 9, 2023

It looks like the plugin loads public.js without any conditions. I disabled WP_DEBUG and even turned off the error logging switch, but public.js continues to be enqueued. If debugging is disabled, this should disable public.js too. Or at least provide an option to disable it. I wouldn't want to load this for regular visitors.

@qriouslad
Copy link
Owner

@viktorix that's a good idea. I'll implement in the next release. Thanks!

@mainulsunvi
Copy link

@qriouslad I would appreciate it if you could assign this issue to me. Thank you!

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

3 participants