Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

iFrame elements load-time

Avatar

Avatar
Boost 1
Level 1
sarfarazk130377
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
sarfarazk130377
Level 1

Like

1 like

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
sarfarazk130377
Level 1

05-02-2019

Hi all

I have an iframe on a page which have 4 different div elements. I have to integrate the DTM in the iframe to get it track . The content of each div element is populated by different sources and take different time to get load.

So, the business question that I have to solve is how much time each div element takes to load in the iframe? For example, if the 4 div elements took 1 sec, 2 secs, 5 secs, 9 secs respectively to load, I have to extract these load times of individual div elements. I can see the load time of these div elements in the browser (Chrome) Network tab but don't know how to grab it.

Thanks in advance

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
Employee
Gigazelle
Employee

Likes

468 likes

Total Posts

1,947 posts

Correct Reply

739 solutions
Top badges earned
Coach
Contributor 2
Validate 1
Ignite 80
Ignite 70
View profile

Avatar
Coach
Employee
Gigazelle
Employee

Likes

468 likes

Total Posts

1,947 posts

Correct Reply

739 solutions
Top badges earned
Coach
Contributor 2
Validate 1
Ignite 80
Ignite 70
View profile
Gigazelle
Employee

15-02-2019

You would want to implement DTM on the parent page, and use custom JS logic to determine load time for each. This page has some helpful variables to aid you in creating that JS logic:

Calculating Page Load Time In JavaScript - Stack Overflow

The second answer on that page in particular can help establish timestamps for certain assets, which you can then perform math on and ultimately obtain the load time for each frame.

Answers (0)