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

Add amIUsed calls to see if modules are still needed #1726

Merged
merged 2 commits into from
Jan 8, 2025

Conversation

emma-imber
Copy link
Contributor

@emma-imber emma-imber commented Jan 8, 2025

What does this change?

Adds amIUsed calls to see if some modules we have to handle ads on frontend are still needed. Also does some more granular logging in article-aside-adverts to see if both conditional blocks are still needed, in case we might be able to reduce the code down.

Why?

We last checked these modules a couple of years ago and we've had more migrations since, so we're checking if these bits of code are still needed.

@emma-imber emma-imber requested a review from a team as a code owner January 8, 2025 14:50
Copy link

changeset-bot bot commented Jan 8, 2025

🦋 Changeset detected

Latest commit: e6d647a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@guardian/commercial Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

github-actions bot commented Jan 8, 2025

Ad load time test results

For consented, top-above-nav took on average 4151ms to load.
For consentless, top-above-nav took on average 3079ms to load.

Test conditions:

  • 5mbps download speed
  • 1.5mbps upload speed
  • 150ms latency

@emma-imber emma-imber merged commit dab9c86 into main Jan 8, 2025
14 checks passed
@emma-imber emma-imber deleted the ei/check-modules-are-used branch January 8, 2025 15:58
emma-imber added a commit that referenced this pull request Jan 9, 2025
emma-imber added a commit that referenced this pull request Jan 9, 2025
* Revert "Add amIUsed calls to see if modules are still needed (#1726)"

This reverts commit dab9c86.

* Changeset
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