getting data from server freezes all animations

getting data from server freezes all animations

dadodado Posts: 17Questions: 0Answers: 0
edited April 2010 in General
Hi Allen,

i put an animated gif in the processing div instead of a string. Problem is, that the animation stops while the div is visible (i tested it with the same gif on another place on the website. Animation runs smooth until requesting new data from server. Then animations stops and when the processing div vanish, the animations goes further. Any idea?

Some code:
[code]
[...]
$.fn.dataTableExt.oApi.fnReloadAjax = function ( oSettings, sNewSource, fnCallback ) {

if ( typeof sNewSource != 'undefined' ) {
oSettings.sAjaxSource = sNewSource;
}

this.oApi._fnProcessingDisplay( oSettings, true );
var that = this;

$.getJSON( oSettings.sAjaxSource, null, function(json) {
// alten Kruscht l

Replies

  • vicayavicaya Posts: 14Questions: 0Answers: 0
    Yes, animated gif in the processing div doesn't seem to work for me as well in version 1.7.5. Even without server side processing: just use a big aaData to sort stuff. The gif is shown for 10 seconds it doesn't animate. The gif animates fine by itself. Any ideas?
  • vicayavicaya Posts: 14Questions: 0Answers: 0
    Looks like most browser is single threaded per tab (I thought animated images is rendered in different thread.), this makes sense. It'll be great if sort/filter algorithms are pluggable so people can implement sort/filter algorithms that yield cpu from time to time with setTimeout calls.
This discussion has been closed.