Hacker News new | ask | show | jobs
by ffe44 2399 days ago
Ha. Last time I wanted to buy something on Amazon, their search page kept freezing every time I load it: 100% CPU load. Because I really wanted to buy that thing, I spent 30 mins debugging their silly scripts and found one for-loop that tries to find a non-existent element. Unfortunately, I couldn't figure out a way to enable my fix in a minified script, as reloading the page kept loading the original script.
3 comments

Put a breakpoint on the offending line, manually add the element when it breaks, hit resume and hope for the best?
Whit uMatrix, you could have created a rule to block that script.
Turn off Javascript - Amazon still works OK.