onReady() function throwing error on EVERY page

@reswebdev I think you are right.
I have tested a number of functions relating to the onReady () function on several of my pages.
I can see that the script works fine on my live website.
Now remains to be seen why the function is identified as an error by the IDE …
Can you confirm ?