So, why didn’t I notice it until now? Well, Chrome didn’t really kill it, they just deprecated it to the point where it sometimes doesn’t work. And they’ll eventually deprecate it to the point that it won’t work at all. Why, because it can be slow.
However, Chrome still thought that they were too slow. So I’m having to fix my websites. Stubbart.com, FantasticStoriesForYou .com , WeCanReverseClimateChange .com , and PrincessTigerlily.com. That’s only 4 websites, but several webpages per.
I replaced document.write with innerHTML. To do this, id an element before the <script> statement. Chrome tells me that I’m supposed to make my scripts async …. But for what I’m doing not sure that applies. Anyway this works, for now. Make sure that you don’t do something like <p><script></script></p> – place those outer paragraph tags inside the script – as part of the innerHTML. Then place a <div id=…></div> before the script.
innerHTML is elementid.innerHTML=v. So if your id is xyz, then xyz.innerHTML=v. My code still didn’t work when I forgot to close the element before the script – it doesn’t exist until you close it. Also, if I had a document.write within a script, I had to rework that, making sure that the element was created before the innerHTML statement. And innerhtml doesn’t work – the HTML must be uppercase.
Bottom line – if you’re using one of my websites and it doesn’t work – try again tomorrow. This is going to take a little bit of time.