-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
Delay unhiding body until Dynamic CSS is loaded #1452
Delay unhiding body until Dynamic CSS is loaded #1452
Conversation
function installDynamicClassesService(win) { | ||
return getService(win, 'dynamic-css-classes', () => { | ||
addRuntimeClasses(win); | ||
return {}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a short docstring.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
Very nice! |
You didn't catch my Easter egg, though. Have an idea what to name the file? |
@@ -0,0 +1,36 @@ | |||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Name the file render-delaying-extensions.js
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
LGTM, but please add the timeout to |
68049da
to
68e6786
Compare
This will allow me to add a Dynamic CSS promise without exporting a custom element.
- Fixes issue with `useCompiledJS` on the debug page - Adds `opacity` checks to `#hidden` and `#visible` matchers
6b37e03
to
3dd3bc9
Compare
But only if we’ve included the extension.
3dd3bc9
to
3ce05ca
Compare
PTAL |
LGTM |
Delay unhiding body until Dynamic CSS is loaded
But only if we’ve included the extension.
Also included:
useCompiledJS
on the debug pageopacity
checks to#hidden
and#visible
matchers