0
Good morning.
When I press any MENU, BUTTON, link, etc everything works correctly and perfectly, however, there are hours that the code to be executed takes, sometimes a little, sometimes more than a little. It bothers me a lot because I do not know if I clicked, then I click again. This sensation must be the same as a user. So what I’d like to do is make an hourglass appear BEFORE ANYTHING.
The hourglass/ wait I already know how to do. I use this way:
https://github.com/raphaelfabeni/css-loader
On some buttons on the onclick that calls a function I "trigger" the HOURGLASS APPEARANCE/WAIT, and at the end of the execution of the function I "SHOOT" the HOURGLASS/WAIT. With this if I am processing something on the server or a longer task, I show the user that something is happening... and when the task is finished the hourglass goes away and the user knows that he can proceed.
What I would like to learn to do is when I click on an exe menu item:
<li><a href='especialidade_01.php'>Especialidades</a></li>");
this page of this menu item already comes with the HOURGLASS/WAIT "loaded" and at the end of the "loading" of the page "TAKE OUT" the "HOURGLASS/WAIT".
There are times I click on a menu item and the page takes a while to appear.. very annoying indeed.
Sorry for the words/terminology I used to report but I really don’t know yet how to call/describe this situation appropriately for lack of experience..
Good afternoon @Leocaracciolo .. First I want to thank you for your attention :).. I will take a look. : ) thank you
– Ricardo M.Souza
@Leocaracciolo Ola.. guy read the link you passed.. but from what I understand it is to show AFTER loading.. Isn’t it?? Hugs.
– Ricardo M.Souza