jQuery breaks fast history navigation

jQuery breaks fast history navigation


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