Image loading in Data Tables

Image loading in Data Tables

quytennisquytennis Posts: 14Questions: 0Answers: 0
edited February 2012 in General
If there are 1,000 rows I want to display but if each row contains a thumbnail image, will DataTables try to preload all 1,000 images when the first 10 rows are displayed?

Will this fix deferred rendering work for this example?
http://datatables.net/release-datatables/examples/ajax/defer_render.html

Replies

  • allanallan Posts: 63,542Questions: 1Answers: 10,476 Site admin
    How are you loading your data - by Ajax, or is it DOM sourced? If DOM sourced, that you would need to use a different technique (the same as what would be used without DataTables - whatever that might be - I'm sure there are scripts out there for it!). If Ajax sourced, then yes, deferred rendering would do the job since the nodes aren't created until needed.

    Allan
This discussion has been closed.