License Error/ License API not getting called

Hi, If I keep refreshing the same page again & again. Out of 10 refresh 6 times its failing & 4 times its successful. Lets say I open the page for the first time the viewer didn’t load but if I refresh the page it loads perfect. If I again refresh it may load or may not by throwing License error. its Random behavior. Hope you understand.