ContextSwitch
ContextSwitch

Reputation: 2837

Which Page Load events map to Google Analytics DOM Timings

Google's documentation is a little unclear to me, and I can't find anything more explicit in terms of Google Analytics' DOM Timings:

https://support.google.com/analytics/answer/2383341?hl=en

My Questions are:

1) Does the Avg. Page Load Time correspond with the $(window).load() event?

2) Does the Avg. Document Content Loaded Time correspond with the $(document).ready() event?

3) What event, if any, does the Avg. Document Interactive Time correspond with?

Upvotes: 2

Views: 1145

Answers (1)

Maria Söderberg
Maria Söderberg

Reputation: 150

1) Yes. (But $(window).load() has been deprecated in jQuery, use $("selector").on("load", function() {});) instead.

2) Yes. (They both refer to the same readyStade property of the Document object)

3) The "Avg. Document Interactive Time" corresponds to the readyState property of the document object. There is no corresponding event in jQuery for this but it refers to the time when the user can interact with the DOM.

Upvotes: 3

Related Questions