Hacker News new | ask | show | jobs
by Mystery-Machine 723 days ago
This ain't gonna work for 1,000,000 checkboxes. You could try using requestAnimationFrame or querying only non-checked checkboxes querySelectorAll('input[type="checkbox"]:not(:checked)') or not calling checkAllCheckboxes for all mutations.

Edit: or just call querySelector('input[type="checkbox"]:not(:checked)') and do them one by one in some kinda while(true) loop

1 comments

Just write data to the underlying API. No need to interact with the browser UI at all.