tilaksanyal / galleriffic

Automatically exported from code.google.com/p/galleriffic
0 stars 0 forks source link

Firefox indicates that it hasn't finished loading (spinning icon) #312

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Display official demo (http://www.twospy.com/galleriffic/example-1.html) in 
recent Firefox (example: 19.0.2)

Notice that Firefox keeps indicating that the site is loading by
displaying the green spinning icon in the browser tab.  (May need to display 
for the first time in browser session to see this result.)

See this discussion thread about Galleria for a related problem:
http://support.galleria.io/discussions/problems/2107-firefox-not-completely-load
ing .

Their diagnosis also applies here.  The problem can be fixed in the preloader 
code:  after it creates the "new Image", append it to a container div 
($container.append( image )).   The Image must remain invisible until used, so 
one approach is to set up the HTML with an additional <div> set with display: 
none, and use that as the initial container.

Original issue reported on code.google.com by shulman...@gmail.com on 20 Mar 2013 at 5:08