Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In IE7 - bulk AJAX request happens before "load" measurement is added #2

Open
GoogleCodeExporter opened this issue Nov 14, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

When using FF3, the bulk AJAX request which happens at window.load contains
the "load" measurement in the ets parameter:

http://hostname/rx?uid=1218466993468,&st=1218467010556&pn=MyPage&ets=load:2568

In IE7, the bulk AJAX request looks like this:

http://hostname/rx?uid=1218470329718,&st=1218470345859&pn=MyPage&ets=

The "ets" parameter is empty.

After a little bit of poking around, it seems to me that the AJAX request
(the call to _bulkLoad()) happens BEFORE the "load" event gets measured
(the call to Jiffy.measure("load", null)).


Original issue reported on code.google.com by [email protected] on 11 Aug 2008 at 4:08

@GoogleCodeExporter
Copy link
Author

After more poking around, seems like the faulting function is Jiffy.utils.on(). 
The
event handlers are added in the correct order, but called in the reverse order.

I managed to work around it using jQuery. Jiffy.utils.on now uses jQuery event
handling if jQuery is available. See attached file for a patch.


Original comment by [email protected] on 11 Aug 2008 at 4:59

Attachments:

@GoogleCodeExporter
Copy link
Author

The issue is also seen with IE8.  Is there a solution without the use of jQuery?

Original comment by rob.chartier on 5 Jan 2009 at 11:29

@GoogleCodeExporter
Copy link
Author

I think this patch will fix the issue without using jQuery. I tested it in 
Firefox
3.0.9 and IE8.

Original comment by chrisnetonline on 22 Apr 2009 at 2:47

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant