jquery page load, page keeps getting stuck till the page is fully loaded, instead of displaying the loading gif -
I am using the following code to display the loading GIF until the page loads. I'm not sure I'm doing it correctly. I am very new to this
Here is the code:
$ ("# hm"). Click (function () {$ ("# response"). Empty () .html ('& lt; img src = "asset / AJAX-loader gif" />;); $ ("# response") Load ("file.php"); $ ("# response") Hide (); $ ("# response"). Feedin ("slow");}); Try to link as URL or my images, loading gif is displayed, but then the page is trapped for a while before loading.
Thank you, please tell me what I am doing.
Your code is stuck here:
url: $ ( 'Form-demo'). Action, with error:
Unwanted type error: property can not be read 'action' of zero < / Div>
Comments
Post a Comment