I'm trying to achieve what has been explained here.
I am trying to load some data from server to the client side using dynamic script tags. (i.e I create a script tag, set its src to my JSON controller and append it to my head or body tag).
the script loads correctly with the data returned from server. But during the script load, the browser doesn't display busy indicator (tried with Chrome/Firefox) (while according to this reference (page 35), this should be the default behavior).
Also I have added Sleep
method to my server side method to simulate a long-running process, to see the busy indicator appears. But still no luck.
P.s. When I use IFrame
instead of script
, everything works fine and the busy indicator is displayed by browser. but couln't do it with script tag.