Comments (6)
THANKS for sharing! We’ll look into this. Any chance you can share the file with us? [email protected]
from scalar.
https://adisdurakovic.com/scalar-big.yml
I replaced some model names with Disney characters, to not give out too much real data.
from scalar.
Testing 1.25.10 and the particular spec with an issue (now about 49K LOC), it has better performance on initial load, however hitting the Test Request
button for one of our endpoints causes the browser to say the tab hung, and if I leave it for about 60 seconds, the popup to test the request finally renders. I'll see if I can get an obfuscated version for you.
Update:
Spec URL, some of which has been truncated, but I think it still has the necessary amount of info: https://cdn.liam.sh/misc/examples/openapi-truncated-scalar.json
Example page using 1.25.10, linking to an example endpoint -- if you hit Test Request
, you will notice performance issues:
https://cdn.liam.sh/misc/examples/scalar-performance.html#tag/identities/GET/identities
Video also showing this -- this is my high-end personal desktop (16 cores and 64GB of RAM), so it's not terrible, but you'll notice the animation latency when hovering over items on the side, in addition to the delay with test request:
https://cdn.liam.sh/share/2024/09/zen_mspDGu1fr7.mp4
In our work environment, on lower performance laptops, virtual desktops, etc, the performance is terrible (60s+, tab crashing, etc).
from scalar.
Running into browser tab crashes/hanging when testing with an openapi.json with about ~30K LOC.
In the past with other editors and viewers, this was easily solved/performance drastically improved by rendering tag sections in their own view/page, rather than all on a single view/page. Are there any plans to potentially have a mode for scalar where you could configure that?
Right now, with ~30K LOC, the initial load isn't as big of an issue, but when I select a specific endpoint and it auto-opens the entire models section, is where it goes downhill very fast.
from scalar.
Is that still the case with the latest version? Would be great if you could give it a try.
And is your OpenAPI document public? So great to have more real-world examples.
from scalar.
Awesome, thanks for sharing this! We should be able to improve this.
from scalar.
Related Issues (20)
- Reuse the parsed OpenAPI document in the Client
- render request payload for webhooks
- API Client lacks support for formData params (Swagger 2.0) HOT 1
- Data migration bugs
- Incorrect request url
- Fix generate-types script HOT 1
- Using a big spec in the config causes a quota error HOT 2
- Issues with Automatic Headers and Cookies in Scalar after Recent Updates (standalone.js) HOT 1
- form parameters are not added to the request HOT 1
- new workspaces don’t use the configured proxy
- API client breaks when pasting long text in the address bar
- OpenAPI HTTP1.1 example code is invalid
- Multiple auth methods bug HOT 3
- Renaming workspace doesn’t work HOT 4
- Remove `@scalar/themes` from the dependencies of `@scalar/types` HOT 2
- Body not filling with example values HOT 1
- Hitting 'Enter' in any input field resets the url path HOT 1
- Missing styles HOT 4
- Main content order doesn't follow x-tagGroups, causing misalignment with sidebar
- Get request adds content-type json header by default when using scalar from CDN.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scalar.