swagger-api / swagger-api/swagger.io-docs
Delay on page display for AdBlock users
Nobody has claimed this yet.
- Dominant language
- Astro
- Stars
- 1.6k
- Forks
- 407
- Avg merge
- 2m
- Merged PRs (30d)
- 2
Description
FYI
A weird issue I just noticed with AdBlock Plus on Chrome 72.0.3626.96 on MacOS.
It seems there is a Javascript event on swagger.io/AdBlock that waits for the DOM to be fully loaded before showing the page. So we get from a blank screen to the actual page in a blink, but after waiting a few seconds.
It's annoying for some heavy pages or slow connections as showing a page takes 3-5 seconds (others websites take around 500ms).
If I disable AdBlock it works fine. The only list enabled on my side is EasyPrivacy.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the delay on swagger.io in Chrome with AdBlock Plus and the EasyPrivacy list enabled, then inspect the JavaScript event that waits for the DOM to load. Done means the page no longer remains blank for 3–5 seconds when AdBlock is enabled, while still displaying correctly on slow connections.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100