how to display randomly figures via JQuery

69 views Asked by At

ok, I've set up a site and I'm using isotope for some cool transitions, based on filter options.

however, as isotope loads after the whole page is loaded, and not when the DOM is ready, I cannot use the random display feature, as my figures are displayed for half a second as they are coded, and after the page kinda refreshes and displays my figures randomly.

that's not acceptable. so, I searched a bit for random-displayers for HTML elements, but unfortunately nothing came useful enough.

any thoughts?

1

There are 1 answers

0
sba On

You'd have to hide the content until isotope is loaded. Just having visibility: hidden until isotope is ready should suffice. Show some progress indicator during this loading time.