A couple issues I see. 1) Completely removing the functionality for Opera, Safari, and FF 3 seems like a bad idea - we like to make sure that everything is cleaned up after we're done. 2) Is there some alternative event that we should be binding to for Opera in order to clean up our event bindings? 3) Is there a way to detect that binding in a way that doesn't involve browser sniffing? 4) It sounds like this might be a bug in Firefox 2 and Opera - if they are incapable of maintaining the cache when an unload event is bound. Presumably this was fixed in Firefox 3?
--John On Sat, Sep 27, 2008 at 8:11 AM, JeroenH <[EMAIL PROTECTED]> wrote: > > Hi, > > Both Opera and Firefox allow "fast history navigation", or "bfcache". > In that mode, they remember the state of the previous page, including > event handlers. > > Because of bugs in IE and FF<3, jQuery currently removes event > handlers on "unload" (the last few lines of events.js). That means > that when going backwards to a jQuery site, all interactivity is lost, > in theory at least and for quite a few Opera users in practice. > > Both browsers detect when this would be a problem and will completely > reload a page and rerun all scripts. This is annoying, since going > backwards is no longer instantaneous. Opera has an option to disable > this behaviour, and many users have it disabled, resulting in the > aforementioned loss of interactivity. > > The code that's responsible for this is only needed for IE<8 and FF<3. > It would be better to target just these versions and leave other > browsers alone, making browsing on jQuery enabled sites more pleasant > for users of FF 3 and workable in Opera 9.5. > > This is ticket 3015 ( http://dev.jquery.com/ticket/3015 ). > > (per http://my.opera.com/community/forums/findpost.pl?id=2745411 ) > (related: > http://groups.google.com/group/jquery-dev/browse_thread/thread/67abd50cd3ef0fc8 > ) > > Many thanks, > > Jeroen > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to jquery-dev@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---