Skip to content

[pull] master from gorhill:master#593

Merged
pull[bot] merged 3 commits intoMu-L:masterfrom
gorhill:master
May 22, 2023
Merged

[pull] master from gorhill:master#593
pull[bot] merged 3 commits intoMu-L:masterfrom
gorhill:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented May 22, 2023

See Commits and Changes for more details.


Created by pull[bot]

Can you help keep this open source service alive? 💖 Please sponsor : )

gorhill added 3 commits May 22, 2023 10:26
Related commit:
- 4187633

The `tryCount` parameter has been removed.

The new default behavior of the sed.js scriptlet is to bail out
when the document itself has been fully loaded, i.e. when
DOMContentLoaded event is fired.

Two new parameters have been added to override the default quit out
behavior:

`stay, 1`

Use to force the scriptlet to stay at work forever.

`quitAfter, ms`

This tells the scriptlet to quit `ms` milliseconds after the
page has been loaded, i.e. after the DOMContentLoaded event has
been fired.

The mutation observer of the sed.js scriptlet can be a significant
overhead for pages with dynamically updated DOM, and in most cases
the scriptlet is useful only for DOM changes occurring before the
DOMContentLoaded event, so the default is to quit out when that
event is received ("quit out" means discarding the mutation observer
and having the scriptlet garbage-collected by the JS engine).
@pull pull bot added the ⤵️ pull label May 22, 2023
@pull pull bot merged commit 568e21a into Mu-L:master May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant