Bug Tracker

Modify

Ticket #6270 (closed bug: worksforme)

Opened 3 years ago

Last modified 14 months ago

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:
Blocking: Blocked by:

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.

Change History

comment:1 Changed 3 years ago by addyosmani

  • Keywords document firefox, back-button added; firefox removed
  • Priority set to low
  • Status changed from new to closed
  • Resolution set to worksforme

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.

comment:2 follow-up: ↓ 3 Changed 2 years ago by anonymous

this is NOT resolved.

comment:3 in reply to: ↑ 2 ; follow-up: ↓ 4 Changed 2 years ago by anonymous

Replying to anonymous:

this is NOT resolved.

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

comment:4 in reply to: ↑ 3 Changed 2 years ago by tomasix

Replying to anonymous:

Replying to 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.

comment:5 Changed 2 years ago by ajpiano

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...

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.