swagger-api / swagger-api/swagger.io-docs

Delay on page display for AdBlock users

Open
#233 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.