Delay columns containing images

Delay columns containing images

josdemosselmanjosdemosselman Posts: 6Questions: 0Answers: 0
edited December 2013 in General
Hi,

I've created a webshop containing lost of images. Is it possible, when customers use the filter section, to delay loading the images of the first column? For example: When a customer wants to see all records containing 'samsung', the autofilter will load different rows and images when the 's' is typed, then when 'sa' is typed etc. This increases unnecessary website traffic.
So is there any solution to delay this? The rest of the data has no delay and is instantly visible when auto-filter is used.

Thanks in advance.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    How are you loading the data? If Ajax, try using bDeferRender and paging.

    Allan
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Oh - also this plug-in might be of some use: http://datatables.net/plug-ins/api#fnSetFilteringDelay . It adds a small delay to allow further filtering input.

    Allan
  • josdemosselmanjosdemosselman Posts: 6Questions: 0Answers: 0
    edited December 2013
    Hi Allan,
    thanks for the quick reply.
    All the data is loaded from a mysql database (about 8000 records). So i think the first option will not work.
    I'm going to implement the filtering delay. Hopefully, it works... The delay, is it in milliseconds? (and how do i test it) just put a delay of 10 seconds?
  • josdemosselmanjosdemosselman Posts: 6Questions: 0Answers: 0
    works like a charm! thank you very much!!!
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Yes - in milliseconds. Good to hear it works for you :-)

    Allan
This discussion has been closed.