Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamically loading requirements #85

Open
coyotte508 opened this issue Nov 17, 2013 · 0 comments
Open

Dynamically loading requirements #85

coyotte508 opened this issue Nov 17, 2013 · 0 comments

Comments

@coyotte508
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant