Looking to add lightbox functionality to my website, but one big problem seems to stand in the way.
I've decided to start cleaning up my t-shirt website (which I made two years ago after about a week of trying to teach myself GoLive from scratch. In other words I did pretty much everything hamfisted and wrong, but it more or less works as intended).
One little addition, besides cleaning things up, I was hoping to make was the inclusion of lightbox for my image enlargement needs (I'm going with lightbox2, because it was the only one I could find that didn't seem to have IE bugs when used on my page).
I've already set that up for my main display pages, but once I got to my product pages I ran into a snag. The product assortment is loaded through an iframe that houses my Spreadshirt back end. Loading this iframe can be a doggedly slow process (and one that, from what I understand, spreadshirt plans on improving soon).
Anyway, the problem is that the lightbox doesn't work until the iframe has finished loading, and since that can take a while it means that more often that not anyone clicking on an image to enlarge it will get sent to an ugly bare and separate page.
So the big question is is there a way for me to force a browser to process whatever it needs for the lightbox before it starts loading the iframe?
Oh, and here is my
test page.
That said, Lightbox annoys the hell out of me.
posted by delmoi at 1:30 PM on October 1, 2007