kamal2222ahmed / jiffy-web

Automatically exported from code.google.com/p/jiffy-web
Other
0 stars 0 forks source link

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

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
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 royra...@gmail.com on 11 Aug 2008 at 4:08

GoogleCodeExporter commented 8 years ago
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 royra...@gmail.com on 11 Aug 2008 at 4:59

Attachments:

GoogleCodeExporter commented 8 years ago
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 commented 8 years ago
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: