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

Make ICAO type DB requests wait until the file is loaded #18

Closed
wants to merge 2 commits into from
Closed

Make ICAO type DB requests wait until the file is loaded #18

wants to merge 2 commits into from

Conversation

daviessm
Copy link

@daviessm daviessm commented Aug 4, 2017

Previously the icao_aircraft_types.json file was being loaded multiple times because a few AJAX requests fired off to get the file before it had loaded. This change waits until the file has loaded before running all the queued up requests against it.

It's probably not the best implementation but was the best I could come up with with my limited JS skills!

Merge latest dev branch
This will stop multiple requests and responses for the icao_aircraft_types.json file.
@mutability mutability added the web Stuff for the web team to look at label Mar 4, 2019
@mutability
Copy link

The way that the main db loader handles this is to stack up all requests on the same deferrable, might be simpler to do the same here.

@daviessm
Copy link
Author

This is old and almost certainly out of date, and there's a better way to implement it.

@daviessm daviessm closed this Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
web Stuff for the web team to look at
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants