How to eliminate flicker effect when calling ajax

I ran into a problem:

On the html page, when I click on a specific control (tab title), I make an ajax call.

From Wicket (java code), I call the javascript function, which "redraws" all the components on my page (this is like reloading the page). Each time I do this, I get a flickering effect on html (which, as I said, after calling ajax will cause a redraw of all components on the page).

I run the javascript function (which redraws) because I need to redraw using the new information provided by the ajax answer (the answer gives me a new table, for example, and I need to redraw, redraw the page using this new information as a kind of parameter, in accordance with it).

+3
source share
1 answer

Sorry, but the clarity is here: when you say redraw, you really mean redrawing the existing content (as in “make dynamic changes to the table but not delete”), or you want to replace the existing content with some new content, like the usual Ajax method?

, , - /, - , . " " ( div, div ) , .

+2

Source: https://habr.com/ru/post/1697674/


All Articles