-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Slow load time on any browser - large-ish yaml #133
Comments
Hello @TracyZuora. First of all. I love how you styled ReDoc ❤️ Now regarding slow load time: There is relative issue already opened so you can track this: #62 Also I won't close this issue to track your case. |
Roman, Do you think if we have multiple files instead of one file that the performance would be better? I will try this tonight. We are having the API Reference failing on load most of the time :-( |
If you do separate the files would they have to load on multiple pages? Sort of a pagination if you will? |
Roman, We love ReDoc but the performance issues are causing us to rethink the ReDoc approach. I want to stick with ReDoc but we are already looking to change. Is there anything that we could help with in diagnosing/fixing this issue? |
I understand your issue as we are also suffering from this 😢 We are working on resolving this issue, but it is quite complicated. I plan to fix this issue during next 2-3 weeks but I can't promise as I just have ideas in mind not the concrete solution. The basic idea is to move the main bottlenecks to the build step (check #62)
actually I have your spec for tests so don't need anything else at the moment, I will reach you if I need something |
@TracyZuora I have released to CDN beta version of ReDoc with performance optimisations Could you test it and provide your feedback? This version is only on CDN, it is not available via npm |
Thank you so much for expediting this fix. We will be testing the CDN fix this weekend and will post results. The Zuora Beijing team will jump on the testing first and I will follow suit in the US. We love ReDoc! |
Thank you @RomanGotsiy! From Beijing side, we updated the local redoc.min.js with the fix. The average loading time of our yaml file with code samples in a totally new incognito Chrome browser is about 13 seconds without lazy rendering, and 8 seconds with lazy rendering. After cached, the loading time is really fast around 2-3 seconds to load. Overall it is much faster than before. |
@TracyZuora @jenniferwang2000
Can I close this issue now? |
Thank you Roman - please close the lazy rendering is working great! We will be uploading to our production environment this week. |
Hello Redoc Community,
Our yaml file with code samples is about 2.2 MB and is slow to load. We are looking for alternative approaches that would allow us to remove most of this download/process time to improve the user experience. Does anyone have some advice for optimizing the load time?
www.zuora.com/developer (select API Reference)
The text was updated successfully, but these errors were encountered: