Skip to content

Conversation

@YunFeng0817
Copy link
Member

@YunFeng0817 YunFeng0817 commented Feb 5, 2023

Fixes #1090

  • Add an option 'recordAfter' which can customize the initialization time of the recorder.
  • Add doc for the option
  • Add an integration test case

Helpful info:

  1. When DOMContentLoaded is emitted, the readyState of the document is interactive.
  2. When load is emitted, the readyState of the document is 'complete'.

@YunFeng0817 YunFeng0817 marked this pull request as draft February 5, 2023 12:57
@YunFeng0817 YunFeng0817 marked this pull request as ready for review February 6, 2023 06:00
@YunFeng0817 YunFeng0817 added the 2.0 label Feb 6, 2023
Copy link
Contributor

@jlalmes jlalmes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🙌

@YunFeng0817 YunFeng0817 changed the title use DOMContentLoaded event rather than load event add option to record on DOMContentLoaded event Feb 8, 2023
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.

[Bug]: Recorder initializes very late in page load lifecycle

4 participants