Location.reload() is giving a flickering effect

This is part of a function I use:

        success: function(data) {
            setTimeout(function() {
            }, 3000 )             

But the page is blinking/flickering during the location.reload(). Is there a way to avoid that?

Thank you in advance

Hi donboe,

location.reload(); reload the current document which is why you are seeing the flicker.
You could probably avoid it by reloading part of the current document.

Hi Pullo, thanks for the reply

funny enough after I changed:

setTimeout(function(){location.reload();}, 3000)


setTimeout(function(){window.location = window.location}, 3000);

The flickering is gone.

In all of the different browsers or just in the dozen or somost popular ones?

Hi Felgall. In the ones the client see as important.

Taking advantage of ignorance? I’m not saying you need to be professional, just saying.

Not sure what you mean. Just said that the client saw it flickering in Chrome, FF and IE (which are important to him). Now it’s not anymore. I don’t see what that has to do with beeing professional. I did what the client asked me, that’s all

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.