![]() |
|
The Load of Loading in a Web App - Printable Version +- Sinisterly (https://sinister.ly) +-- Forum: Coding (https://sinister.ly/Forum-Coding) +--- Forum: Coding (https://sinister.ly/Forum-Coding--71) +--- Thread: The Load of Loading in a Web App (/Thread-The-Load-of-Loading-in-a-Web-App) |
The Load of Loading in a Web App - zoran - 02-08-2015 Every web app of significance has a load to distribute. Some wait until some resource is needed to load it and other prefer loading all up front. I am the latter, simply because the user expects a wait time at the beginning, only to enjoy instantaneous gratification throughout your program's use. I do this by loading every window into hidden divs and showing them through JQuery's ,show/.hide I set up the states for each scenario throughout the App. Then I put these as functions in their own .js file and call whichever I need to turn on and off the sets of divs as needed. |