Friday, September 28, 2012

RE: splitting up image loads from rest of page

Checkout the jquery lazy load plugin [http://www.appelsiini.net/projects/lazyload]. I'm sure you can use it to achieve what you want.

Minor advice, this doesnt exactly relate to django, may be SO or some other js forums / groups would be a better place to post this?


-----Original message-----
From: Larry Martell
Sent: 29/09/2012, 1:18 AM
To: django-users@googlegroups.com
Subject: splitting up image loads from rest of page


I have a template that creates a table that has clickable links. It
also loads a bunch of images associated with each row in the table.
Through javascript events, when the user mouses over certain fields,
the images are displayed or hidden. Initially, all the images are not
displayed

When the page loads, the table is produced quickly, but then there's a
period of time before you can click on the links or mouse over and see
the images. How long that period of time is seems directly related to
how many rows there are in the table, so I'm assuming that time is
being spent loading the images. Would that be a correct assumption?

Assuming my assumption is correct, is there a way I can some how split
this up, so the clickable links work as soon as the table is rendered,
without waiting for the images? Also, the client is asking for me to
display '... loading images' which goes away once they are all loaded.
Can anyone tell me how I could do that?

Thanks!
-larry

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment