AdguardTeam / AdguardTeam/ExtendedCss

Use worker API to exec selector simultaneously

Ouverte
#181 1 commentaire 0 réactions 1 personne assignée Réclamée par @maximtop Voir sur GitHub
Priority: P4
Langage dominant
TypeScript
Étoiles
71
Forks
11
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

If a selector without non-standard CSS properties matches huge amount of elements, large amount of CPU and memory resources are required to check the non-standard CSS properties.
It means that checking process with non-standard CSS properties will take some times.

However, using [p-limit npm package](https://github.com/sindresorhus/p-limit) can execute a selector with non-standard CSS properties simultaneously according to `navigator.hardwareConcurrency` [^1].
It reduces the taking time to execute a selector to select the elements.

[^1]: Please note that some privacy protection features mock the property with a number lower than the actual number. (e.g., Brave web browser's fingerprinting blocking and Firefox's `privacy.resistFingerprinting` in `about:config`)

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.