Skip to content

Dynamically loading requirements #85

@coyotte508

Description

@coyotte508

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions