-
Notifications
You must be signed in to change notification settings - Fork 28
Display Click to Load placeholders on demand #287
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
Conversation
b1d9e28
to
0f17397
Compare
77d57ad
to
cb97543
Compare
cb97543
to
18796b1
Compare
Historically, the Click to Load placeholders were only drawn once at the point page load completed. That had two problems: 1. Sometimes placeholders would take too long to display, if the page took a long time to load fully. 2. Sometimes placeholders would not be displayed at all, if the blocked content was only created after page load had finished. To fix that, let's display the placeholders when instructed by the platform using a "displayClickToLoadPlaceholders" update message. Let's also restructure the response messages, so that they can be clearly distinguished.
18796b1
to
a035a24
Compare
Ok I'm having one issue but its annoying to repro. Basically after the browser has been open for a while (couple hours) CTL is no longer being applied to any page (whether I reload, open a new tab, etc). Maybe the background script is getting killed and not restarting? |
Weird. OK I have filed a task in Asana to investigate that. |
This reverts commit 46ca757. The change was causing an integration test failure, which we ran out of time to debug. We will investigate and reapply this shortly.
Historically, the Click to Load placeholders were only drawn once at
the point page load completed. That had two problems:
took a long time to load fully.
blocked content was only created after page load had finished.
To fix that, let's display the placeholders when instructed by the
platform using a "displayClickToLoadPlaceholders" update message.
Let's also restructure the response messages, so that they can be
clearly distinguished.