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

Speeding up initOPENi? #8

Open
philipobrien opened this issue Jun 30, 2015 · 5 comments
Open

Speeding up initOPENi? #8

philipobrien opened this issue Jun 30, 2015 · 5 comments

Comments

@philipobrien
Copy link

Is there any way you know to speed up the call to initOPENi?

@philipobrien
Copy link
Author

If anyone is using the js lib then this might be an issue for them giving a live demo next week

@dmccarthy-dev
Copy link

@philipobrien can you try preloading these files into your app and removing the code from the client lib. They look like they could be very slow.

loadScript("https://" + global_openi_domain + "/api-docs/lib/shred.bundle.js", function () {
    loadScript("https://" + global_openi_domain + "/api-docs/lib/swagger.js", function () {

@philipobrien
Copy link
Author

@dmccarthy-tssg I just did that, but it hasn't done much, the bottleneck is

image

@dmccarthy-dev
Copy link

It must be downloading all 30+ endpoints , can you look into limiting it to just the ones that you need? Or alternatively you could look at precompiling the Javascript code with this (https://github.com/wcandillon/swagger-js-codegen).

@philipobrien
Copy link
Author

👍 I'll have a look in a while and post back here

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

No branches or pull requests

2 participants