swagger-api / swagger-ui

Swagger UI is a collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API.
https://swagger.io
Apache License 2.0
26.3k stars 8.91k forks source link

Operation loading image stuck #4478

Open heldersepu opened 6 years ago

heldersepu commented 6 years ago
Q A
Bug or feature request? Bug
Which Swagger/OpenAPI version? 2.0
Which Swagger-UI version? 3.15
How did you install Swagger-UI? PetStore
Which browser & version? Tested on latest of Chrome & Firefox
Which operating system? Win7

Demonstration API definition

https://petstore.swagger.io/?url=https://raw.githack.com/heldersepu/hs-scripts/master/swagger/NestedSwag.json#/default/test_Get3

Expected Behavior

The spinner should spin

Current Behavior

The spinner is stuck image

Possible Solution

replace bearings on the spinner

shockey commented 6 years ago

replace bearings on the spinner

:smile:


This is actually due to the fact that the resolution happens as one synchronous call stack on the main thread - breaking the work up and queueing it on the event loop (a la React incremental rendering) or putting it into a worker thread (harder) would fix this.