Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix favicon loading blocking popup opening by lazy-loading favicons #88

Merged
merged 1 commit into from
Dec 24, 2020

Conversation

vezwork
Copy link
Member

@vezwork vezwork commented Dec 18, 2020

Fixes the user experience problem in issue #54. We could still improve favicon loading time by caching the top favicons, but it's no longer a significant UX issue.

The Problem:
The browser waits for favicon images to load before opening the extension popup. This behavior results in the popup taking a while to open if the favicons take a while to load.

The solution:
Favicon images are fetched before being put into image elements on the page (lazy-loaded images). This prevents the browser for waiting for image elements to load.

@vezwork vezwork changed the title fix favicon loading blocking popup opening by lazy-loading favicons Fix favicon loading blocking popup opening by lazy-loading favicons Dec 21, 2020
@sharon-wang sharon-wang self-requested a review December 21, 2020 05:57
@sharon-wang sharon-wang linked an issue Dec 23, 2020 that may be closed by this pull request
2 tasks
Copy link
Member

@sharon-wang sharon-wang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some nitpicks, otherwise looks good to me!

src/popup/popup.css Outdated Show resolved Hide resolved
src/popup/popup.js Outdated Show resolved Hide resolved
@vezwork vezwork merged commit ba302a6 into esse-dev:master Dec 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Favicon loading is delaying extension UI
2 participants