Chatango Remove offscreen Images

Removes images that are offscreen once per minute

Ekde 2015/01/27. Vidu La ĝisdata versio.

Aŭtoro
Aaron Shikaku
Ratings
0 0 0
Versio
1.05
Kreita
2015/01/25
Ĝisdatigita
2015/01/27
Size
879 bitokoj
Licenco
N/A
Aplikiĝas al

This script removes() using jQuery any images not visible in HTML5 Chatango. Without it you will run out of memory eventually if people post enough images, especially GIFs.

Let me know if you need any help.

Libs included:

jQuery 1.11.2 from jQuery.com

https://github.com/dirkgroenen/jQuery-viewport-checker

Updates:
v1.05: Removes offscreen smileys as well as message background images
v1.04: Now using @require and not including, also fixed it breaking UI and Youtube ヽ༼ຈل͜ຈ༽ノ
v1.03: added Youtube portion back in since it breaks it anyway, this time investigating later
v1.02: Removed the Youtube portion due to it breaking Youtube playback, investigating later
v1.01: added youtube video thumbnails to remove too
v1: initial release