reddit-moderator-toolbox-legacy
reddit-moderator-toolbox-legacy copied to clipboard
Look into fetching JSON-HTML in banlist autoloader
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).
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?
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.