On my old iPhone 4s, I had to turn off java script to make the phone usable with the internet. I was getting all kinds of full page ads, locked screens and redirects to stupid or sex sites. No, I don’t use them.
With my iPhone 8, I’m not seeing any ads or problems with
JS.