![]() |
Jquery / Fancybox / farinspace glitch
Hi,
I've created a photo gallery which has the thumbnails in a div below a preview area div. Once a thumbnail is clicked, the preview area shows a larger version of the thumbnail image. I'm using both fancy box and farinspace. The small glitch I have is that when changing images, there is a moment when the thumbnail bar is being displayed in the preview area. It's brief, but annoying, and I can't figure it out. Occassionally, the problem isn't visible, so I assume the problem is with the pre-load. www.artmarcsimon dot com Thanks Javascript Code:
// JavaScript Document |
Hi
Hi I have the same problem as you! I saw your website and it seems like you've solved the problem, could you please tell me how you did that because it's been driving me mad and I can't seem to find anything online!
Thanks in advance. |
I think the problem is with FOUC(flash of unstyled content) as per jquery document before the dom has been properly loaded by the browser the unstyled content may get displayed and then your code will be excuted on document.ready function,to overcome this use the oldschool method of visibilty:hidden and visibilty:visible before and after domready
See an example here which i faced while dealing with jquery tabs Overcoming FOUC example in jQuery tabs |
| All times are GMT +1. The time now is 07:52 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.