fnrender for crud application slowing

fnrender for crud application slowing

jankejanke Posts: 19Questions: 0Answers: 0
edited March 2010 in General
I want to use datatables in php crud application with 3 images for read, update and delete
On my column action i put this code.
[code]
{"bSortable":false,
"fnRender": function(o) {
return "";
}
[/code]
This works fine but the rendering is slowing.
Many thanks for solution to accelerate rendering !!!

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Is it specifically that code which makes it slow? If you comment the render function out - is it significantly faster? I would have thought that only for examples with a large number of rows would this be a noticeable slow down for fnRender - particularly given that it's not doing anything more than a little bit of string concatenation. The return is inserted by innerHTML, so I don't have any immediate suggestions... sorry. Perhaps profiling the Javascript will indicate something?

    Allan
  • jankejanke Posts: 19Questions: 0Answers: 0
    edited March 2010
    Thanks !!

    I read the log apache for each row i have get request for each image
    199.242.28.74 - - [08/Mar/2010:10:30:44 +0100] "GET /dpi_images/tools/enable.png HTTP/1.1" 304 - "http://dpi.r.sf.intra.laposte.fr/synthese/ref_impact_nt/index.php?acte=fictrav&pageID=" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)"
    199.242.28.74 - - [08/Mar/2010:10:30:44 +0100] "GET /dpi_images/tools/enable.png HTTP/1.1" 304 - "http://dpi.r.sf.intra.laposte.fr/synthese/ref_impact_nt/index.php?acte=fictrav&pageID=" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)"
    .....
    I try to reduce rendering time adding caching jquery function
    [code]
    function submit_el(el) {
    $.cacheImage('/dpi_images/tools/enable.png','/dpi_images/tools/update2.png','/dpi_images/tools/delete.png');

    return "";
    }
    [/code]
    You can find this function here http://plugins.jquery.com/project/cacheimage
    The rendering time is always longer for time i continue to use rendering with text whitout images
    [code]
    return "Voir Supp Edit";
    [/code]
    Thanks !!!
  • jankejanke Posts: 19Questions: 0Answers: 0
    My apologise the slowing rendering was becoming from a bad option under IE who was refreshing page for every call.
    I resolve in changing parameters of cache in IE.
This discussion has been closed.