AdguardTeam / AdguardTeam/ExtendedCss

Use worker API to exec selector simultaneously

Abierto
#181 1 comentario 0 reacciones 1 asignado Reclamado por @maximtop Ver en GitHub
Priority: P4
Lenguaje dominante
TypeScript
Estrellas
71
Forks
11
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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`)

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.