Skip to main content

Bug Tracker

Side navigation

#6270 closed bug (worksforme)

Opened March 12, 2010 02:54AM UTC

Closed October 09, 2010 10:59PM UTC

Last modified March 14, 2012 02:44AM UTC

On Firefox 3.6, $(document).ready(...) doesn't get triggered after a back button

Reported by: tomasix Owned by:
Priority: low Milestone: 1.4.2
Component: event Version: 1.4.2
Keywords: document ready, firefox, back-button Cc:
Blocked by: Blocking:
Description

On Firefox 3.6, $(document).ready(...) doesn't get triggered when the page that contains the above code shows as a result of the user pushing the back-button.

Attachments (0)
Change History (5)

Changed October 09, 2010 10:59PM UTC by addyosmani comment:1

keywords: ready, firefoxdocument ready, firefox, back-button
priority: → low
resolution: → worksforme
status: newclosed

Using FF3.6 I've recreated your test here as follows:

First navigate to: http://jsfiddle.net/addyosmani/BBWuP/ (uses $(document).ready())

Next navigate to: http://jsfiddle.net/addyosmani/aUrkD/

Back button results in: http://jsfiddle.net/addyosmani/BBWuP/ correctly executing.

Here I was able to execute the code inside the original page's document ready even when I used the back-button to get to the page.

Closing as this works for me, but please feel free to submit a new ticket if this bug reappears.

Changed January 05, 2011 09:09PM UTC by anonymous comment:2

this is NOT resolved.

Changed January 05, 2011 09:55PM UTC by anonymous comment:3

Replying to [comment:2 anonymous]:

this is NOT resolved.

What exact version of FF are you using? Does it have Firebug installed?

Changed January 05, 2011 10:10PM UTC by tomasix comment:4

Replying to [comment:3 anonymous]:

Replying to [comment:2 anonymous]: > this is NOT resolved. What exact version of FF are you using? Does it have Firebug installed?

I'm using FF 3.6.12 WITH Firebug, and with a local test.html I can confirm that the bug IS ALREADY THERE. Although, using jsFiddle bug doesn't manifest.

Should I suggest not to use jsFiddle for this one?

Bug should be reopened.

Changed January 05, 2011 11:42PM UTC by ajpiano comment:5

I was able to dupe this bug in FF 3.6.13 and jQuery 1.4.4... however, when I tested against the latest GIT, it worked fine.

You can use http://jsfiddle.net/BBWuP/4/show (which is an update of addyosmani's fiddle to use 1.4.4) and it should fail

http://jsfiddle.net/BBWuP/5/show (GIT 0) seems to work...