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: improving enhancer loading timing #175

Merged
merged 10 commits into from
Jul 16, 2024
Merged

feat: improving enhancer loading timing #175

merged 10 commits into from
Jul 16, 2024

Conversation

kptdobe
Copy link
Contributor

@kptdobe kptdobe commented Jun 19, 2024

Introduces a new capability: let the consumer define when to load the enhancer. To do so:

  • set window.hlx.RUM_MANUAL_ENHANCE = true;
  • initialize rum with sampleRUM();
  • when ready - best solution, post LCP - call sampleRUM.enhance();

Copy link

This PR will trigger no release when merged.

Copy link

codecov bot commented Jun 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (830fd72) to head (32fc673).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #175   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            1         1           
  Lines           66        69    +3     
=========================================
+ Hits            66        69    +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@kptdobe kptdobe merged commit d9c690e into main Jul 16, 2024
7 checks passed
@kptdobe kptdobe deleted the enhancer-load branch July 16, 2024 12:22
adobe-bot pushed a commit that referenced this pull request Aug 13, 2024
# [2.2.0](v2.1.4...v2.2.0) (2024-08-13)

### Bug Fixes

* **404:** send referrer ([84a6556](84a6556))
* release process ([#191](#191)) ([f40a949](f40a949))

### Features

* **bundle:** release a standalone 404.js that can be used to track error pages ([33d70b5](33d70b5))
* improve errors capture ([#189](#189)) ([d7448eb](d7448eb))
* improving enhancer loading timing ([#175](#175)) ([d9c690e](d9c690e))
* trigger release ([7d8f4e0](7d8f4e0))
@adobe-bot
Copy link
Collaborator

🎉 This PR is included in version 2.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@trieloff
Copy link
Contributor

This seems to be messing with adobe/helix-rum-enhancer#256 need to understand why

@trieloff
Copy link
Contributor

Faster loading of rum-enhancer in the default behavior means that the URL manipulation needed for the test is coming too late. Fixed in adobe/helix-rum-enhancer@bd2eae3

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

Successfully merging this pull request may close these issues.

4 participants