Closed Tazintosh closed 9 years ago
Hey Tazintosh.
Do you have a live example? Just for the test could you try to add 'img' as selector? What are you doing in the display_page function? Maybe the ajax request is done before the display_page function is done with everything
Hi dinbror, I had to switch to unveil.js, sorry.
No problem
Hi dinbror,
After having successfully used your nice script in a test file, I'm actually trying to use it on a specific part of my website. When a user visit my portfolio, he lands on a page with a basic introduction text, so that while he's reading, I'm loading the full portfolio in ajax and then display it. I would like BLazy to run after my ajax request, so it can handle the class of the new added images.
Here's a simplified version of my code:
I've been able to find out that at this point, BLazy do not find the new appended ".taz_portfolio-item-visual" elements and then never enter to success or error. If (just for the test), I use "body" as selector, console.log clearly display it's invalid message. Note that all the last functions added with .then() are perfectly working and are based on elements only present on the appended code.
Thanks in advance for your help!