Bug Tracker

Opened 11 years ago

Closed 10 years ago

#3841 closed bug

Callback does not fire in Chrome when page is cached

Reported by: RobG Owned by: RobG
Priority: major Milestone: 1.3
Component: event Version: 1.2.6
Keywords: chrome, callback, fadein, function Cc:
Blocked by: Blocking:

Description

While using google chrome i have this code

$(document).ready(

function(){

$("#PageLoading").fadeOut("slow", function(){

$("#LoadedContent").fadeIn("slow");

});

}

)

#PageLoading is a message div, above the hidden (display:none) #LoadedContent. This is on every page of my admin area.

It works as expected on first access (or when i use CTRL+F5), but when using menu links, or forward backward navigation to access pages the callback event is not fired. The PageLoading has it's style set to 'display:none', but the style of LoadedContent is still set to 'display:none'

I have tested (and its works fine) in IE, FF, Safari and Opera?!

Change History (4)

comment:1 Changed 11 years ago by Emmett

I encountered this problem in my company's large application. I haven't been able to reproduce it in a test page, but it's definitely real. It is only present in Chrome 4 beta -- Chrome 3 works fine.

I have described the problem and offered a stopgap solution plugin here:

http://emmett.be/thewebdev/archives/46

comment:2 Changed 11 years ago by Emmett

Oh and I didn't find it varied depending on the cache... it does it first time for me, and on reload.

comment:3 Changed 10 years ago by Rick Waldron

Owner: changed from brandon to RobG
Status: newpending

Please provide a distilled and reduced jsFiddle test case, thanks!

comment:4 Changed 10 years ago by trac-o-bot

Status: pendingclosed

Automatically closed due to 14 days of inactivity.

Note: See TracTickets for help on using tickets.