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

feat(perf): don't enqueue CSS if ads are not to be displayed #767

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

adekbadek
Copy link
Member

If the page should not display ads, don't enqueue CSS.

How to test

  1. Visit a page that will display ads, observe that frontend.css file is downloaded
  2. Visit a page that has ads disabled, observe that the file is not downloaded

@adekbadek adekbadek merged commit 2c70480 into master Nov 27, 2023
2 checks passed
@adekbadek adekbadek deleted the feat/perf-fix branch November 27, 2023 08:11
@matticbot
Copy link
Contributor

🎉 This PR is included in version 1.45.0-alpha.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@matticbot
Copy link
Contributor

🎉 This PR is included in version 1.45.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants