AdguardTeam / AdguardTeam/Scriptlets

Improve 'prevent-refresh' — customize 'delay' to postpone window.stop()

Abierto
#464 0 comentarios 0 reacciones 1 asignado Reclamado por @maximtop Ver en GitHub
enhancement Priority: P4
Lenguaje dominante
JavaScript
Estrellas
195
Forks
33
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

On this website `filmy4wap.co.in` there is (I have redacted URL to `example.org`):
```

```
and `filmy4wap.co.in#%#//scriptlet('prevent-refresh')` breaks loading images (not always happen on my end, but if I enable "throttling" in network panel in devtools then it occurs every time).

According to - https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#refresh:
>The timer starts when the page is completely loaded, which is after the [load](https://developer.mozilla.org/en-US/docs/Web/API/Window/load_event) and [pageshow](https://developer.mozilla.org/en-US/docs/Web/API/Window/pageshow_event) events have both fired.

So maybe we could change it, so `window.stop` will be called only after `load` event was fired.
Or just add additional option to `delay` argument, like for example `load` and `window.stop()` would be called when `load` event was fired.

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.