We use a modified version of Jiffy to measure actual client-side performance.
The most important thing we do is measure the time between when the request was received and when the page load event fires in the browser.
On some pages we have iframe
elements that point to external sites that we don't control - they sometimes take a long while to load. At the moment, the page load event for our page fires only after the iframe
is completely loaded (and it's own load event fires).
I'd like to separate these measurements - have one measurement after everything including the iframe
is loaded, but also one measurement without the iframe
- that is, when the page load would have occured if we didn't have an iframe
.
The only way I've managed to do this so far is to add the iframe
to the DOM after the page load event, but that delays the loading of the iframe.
Any ideas? Thanks!
EDIT: bounty is over, thanks for the help and ideas! I chose Jed's answer because it gave me a new idea - start loading the iframes, but "pause" them so they won't affect page load (by temporarily setting src="about:blank"
). I'll try to add a more detailed summary of my results.