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

Optimize assets loading #47

Merged
merged 1 commit into from
Jul 30, 2021
Merged

Optimize assets loading #47

merged 1 commit into from
Jul 30, 2021

Conversation

felipeelia
Copy link
Member

Description of the Change

As described in #26, while using the plugin with Query Monitor, CSS and JS files are always included. Although that happens due to Query Monitor not checking if Debug Bar would be visible or not, this change shouldn't bring any side-effect.

Benefits

Avoid loading CSS and JS files unnecessarily.

Applicable Issues

Closes #26

Changelog Entry

Changed: only load CSS and JS files for logged-in users.

@felipeelia felipeelia added this to the 2.1.0 milestone Jul 30, 2021
@felipeelia felipeelia merged commit c5a57f3 into develop Jul 30, 2021
@felipeelia felipeelia deleted the fix/assets_enqueue branch July 30, 2021 13:21
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

Successfully merging this pull request may close these issues.

CSS loaded in all requests
3 participants