Displaying PDF in preview is reeeeallly slow
- Dominant language
- TypeScript
- Stars
- 40k
- Forks
- 2.4k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 61
Description
### Expected Behavior
Having some "normal" time to display a PDF. From ms to 1 or 2 seconds max.
### Actual Behavior
Can take up to 30 seconds to display it.
### Reproduction Steps
* Do a GET to a service that sends back PDFs in the body.
* Choose preview as "Visual Preview"
If you choose "Source" or "Raw Data", the display is instant.
### Is there an existing issue for this?
- [X] I have searched the [issue tracker](https://www.github.com/Kong/insomnia/issues) for this problem.
### Additional Information
I didn't find anything related to "Clear caches" or something like that.
### Insomnia Version
2023.2.0
### What operating system are you using?
Ubuntu
### Operating System Version
Ubuntu 22.04.2 LTS
### Installation method
appimage
### Last Known Working Insomnia version
_No response_
Contributor guide
Research direction
No file or test is named. Reproduce the issue with a GET request returning a PDF, then compare the Visual Preview path with Source and Raw Data on Ubuntu 22.04.2. Done means the PDF preview renders within the expected 1–2 seconds rather than taking up to 30 seconds.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- electron, typescript
- Domain
- desktop, frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100