Rule Fire as late as possible upon the initial view of the page | Community
Skip to main content
Luca_Lattarini
New Participant
May 9, 2021
Question

Rule Fire as late as possible upon the initial view of the page

  • May 9, 2021
  • 2 replies
  • 1044 views

Hello guys,

I need to implement a rule with event type is the latest to load? Which one I can use between DOM Ready. Window Loaded, Library Loaded and Page Bottom?

Thanks

Luca

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

tim_funk
New Participant
May 10, 2021

They (should) fire in this order

  • Library Loaded
  • Page Bottom
  • DOM Ready
  • Window Loaded

 

Personally - I would use DOMReady. I would not trust window loaded. Window loaded fires AFTER all the images and other dependent assets are loaded. So if there is just one asset which is performing slowly - the event may never fire. (Which could yield analytics data loss)

 

Charles_Thirupathi
New Participant
May 9, 2021

@luca_lattarini For triggering the Rule as late as possible you can select eventType as Window loaded, as this is the event which triggers once the page has been completed loaded. For reference sharing the snapshot of other eventType informations.