{"id":3,"date":"2009-10-16T16:34:13","date_gmt":"2009-10-16T14:34:13","guid":{"rendered":"http:\/\/blog.gocept.com\/?p=3"},"modified":"2012-12-03T15:11:11","modified_gmt":"2012-12-03T14:11:11","slug":"ajax-loading-spinner-without-flickering-artifacts","status":"publish","type":"post","link":"https:\/\/blog.gocept.com\/2009\/10\/16\/ajax-loading-spinner-without-flickering-artifacts\/","title":{"rendered":"AJAX loading spinner without flickering artifacts"},"content":{"rendered":"

We were embedding a spinner to give user feedback while loading data from a server which might take a little longer (but can also be pretty quick in most cases).<\/p>\n

Implementing the spinner itself isn’t that hard, but we found that quick responses from the server caused visual artifacts flickering up because the spinner was only visible for a few milliseconds (probably roughly 30ms).<\/p>\n

<\/p>\n

The solution we chose to implement looks like this:<\/p>\n