reddit-moderator-toolbox-legacy icon indicating copy to clipboard operation
reddit-moderator-toolbox-legacy copied to clipboard

Look into fetching JSON-HTML in banlist autoloader

Open Dakta opened this issue 10 years ago • 2 comments

Better than fetching the whole page, because fetching the whole page requires insert into the DOM to parse, which generates additional requests (for images and other assets).

Dakta avatar Sep 15 '14 21:09 Dakta

Do we even need the HTML at all? Couldn't we just grab the JSON and create the HTML elements as needed? Or will that be an issue with the input elements?

agentlame avatar Sep 22 '14 16:09 agentlame

The reason it doesn't is because then we have to handle the AJAX calls when you modify the inputs ourselves. We'd just have to hook into the ones that reddit uses, but this is even easier.

Dakta avatar Oct 03 '14 21:10 Dakta