Problem with lazy loading of parts on one page

47 views
Skip to first unread message

Alexej Bondarenko

unread,
May 21, 2013, 4:10:39 AM5/21/13
to lif...@googlegroups.com
Hello lifters!

I'm not sure this one is a bug or some kind of wrong usage. :) Hope someone can help me out.

I have three parts in one HTML template that are lazy loaded like this:

    <div class="lift:lazy-load?template=loader/_spinner-template container">
        <div class="row">
            <div class="large-12 columns content-centered">
                <div>Content</div>
            </div>
        </div>
    </div>

   <div class="lift:lazy-load?template=loader/_spinner-template container">
        <div class="row">
            <div class="large-12 columns content-centered">
                <div>Content2</div>
            </div>
        </div>
    </div>

   <div class="lift:lazy-load?template=loader/_spinner-template-big container">
        <div class="row">
            <div class="large-12 columns content-centered">
                <div>Content3</div>
            </div>
        </div>
    </div>


The first two parts are loaded perfectly well on every page reload. The third part only shows up sometimes (random) after a page reload. I had a look at the response content triggered by the ajax handling of lift and can see the html for blocks 1 and 2 showing up on any request and the third one randomly again.
Any ideas?

I'm using lift 2.5-RC5 and jetty 8

Thanks!
Alex

Diego Medina

unread,
May 21, 2013, 12:29:57 PM5/21/13
to Lift
could it be relate to the template you use on the 3rd lazy load?, have you tried having just the 3rd one on the page, to see if it is related to the snippet?


--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
 
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Diego Medina
Lift/Scala Developer
di...@fmpwizard.com
http://fmpwizard.telegr.am

Alexej Bondarenko

unread,
May 28, 2013, 2:27:09 AM5/28/13
to lif...@googlegroups.com
Thanks Diego!
I just switched to RC6 and it's working fine now. Don't really know what this was.

Cheers,
Alex

Diego Medina

unread,
May 28, 2013, 10:39:03 AM5/28/13
to Lift
glad RC6 fixed it :)
Reply all
Reply to author
Forward
0 new messages