[jQuery] loading message shows up after page has loaded
Hello, I am using jQuery and BlockUI to display a "Loading..." message to the user while the page is loading. The problem is that the "Loading..." message seems to show up AFTER the page has loaded, not during load. Shouldn't the document.ready fire sooner than that? What am I doing wrong? $(document).ready(function() { $.blockUI(); setTimeout($.unblockUI, 2000); });
[jQuery] loading message
Hi guys, I'm working on a Rails app connected to a legacy database. Since the reading process from the database takes several seconds (up to ten) I would like to display a loading message while the page is loading. Can I achieve that using jQuery? If so how? Thanks and have a nice day. Sig