-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
The db files for the pokedex are huge.
So a system to load libraries would be good, using $.getScript.
Don't forget that somewhere:
$.ajaxSetup({
cache: true
});So each file (battles, teambuilder) would have a list of requirements. Those requirements would start getting loaded as soon as the client is up, with for the files getting loaded a variable that indicates it's done.
When the guy opens the teambuilder, if all requirements for the teambuilder are not loaded yet, a loading message would appear.
Same with battles. Battles would need to get paused (this.pause()! ) and unpaused when requirements are loaded.
That system of requirements can be used later if other parts need it.
Metadata
Metadata
Assignees
Labels
No labels