I'm upgrading some image galleries on a university website (needs to be standards compliant, to some degree). Most galleries are many pages of HTML. I've been using the jQuery plugin, Galleriffic, as well as some PHP code I wrote, to generate nice paginated galleries, and it looks great so far. I have two problems though.
The first problem, is that even when JS is enabled, it still takes a while to load. From what I understand about JS, all elements must be loaded into DOM for JS to manipulate them, so the thumbnails all must load up on the page before the JS kicks in. Can I do something to prevent all thumbnails from loading, and only have it load the ones on each page of the gallery? This way, load time is distributed across each page.
The second problem, is that when Javascript is disabled, all 400+ thumbnails have to load on the page. This is the expected behavior, and it works fine for smaller galleries, but not well for large ones. Is it possible to paginate it in PHP, but use JS (when enabled) to prevent the pagination?
I'm not extremely proficient in JS, so I was hoping there was a solution I'm just completely unaware of, and can implement without a complete overhaul.