-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warp speed 馃殌 #6006
Warp speed 馃殌 #6006
Conversation
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.
Needs testing. 馃ゲ
Primarily we need to understand whether the selector observer alone can be used as a deduplicator across page loads
@@ -284,8 +261,6 @@ const add = async (url: string, ...loaders: FeatureLoader[]): Promise<void> => { | |||
continue; | |||
} | |||
|
|||
enforceDefaults(id, include, additionalListeners); |
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.
Dropping all of these defaults is exposing a lot of unnecessary listeners in place for features that don't need them.
@@ -69,7 +69,6 @@ | |||
"push-form": "^1.0.1", | |||
"regex-join": "^1.0.0", | |||
"select-dom": "^7.1.1", | |||
"selector-observer": "^2.1.6", |
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.
this.
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.
Time to merge and release! All features were more or less tested over the past days.
Previous details. Already addressed
I don't know how much I'll change in this PR, but I'm opening it to keep track of what needs to be reviewed before merging or after:
attachElement
are used, then it should:deduplicate
observe
is used, then it should:awaitDomReady: false
el.classList.add('rgh-some-class')
unless it has other usesadditionalListeners
init
hassignal
, then it should:onetime(init)
deduplicate
was dropped, then it should:attachElement
, OR:not(.rgh-some-class)
And more generically
awaitDomReady: false
include
,asLongAs
, andexclude
, it should probably not usesignal
All the rules in ripgrep form, which returns a list of "invalid" files: (WIP)
Commands:
| xargs code
to open the files in vscode instead of just listing them`$
to the parens if you're not using Fishell or PowerShellFeatures already broken:
jump-to-change-requested-comment