Advice about coding

I’m pretty new to this but I have put in a lot of hours. I’m just wondering, shouls a page have only…

one of these - $w.onReady(() => {
and one of these - $w.onReady( function ()

if you look at my sample below you will see that I have multiple. It works but is it more efficient to merge them?

Aren’t they the same? https://javascript.info/arrow-functions-basics

You should only have one onReady() event handler for your page. This ensures that your code executes in the order that you want, and it will make it easier to maintain.

I am sorry I don’t understand your question correctly. I agree if you are saying we should merge both handlers into one.

Yes - that’s exactly what I stated.

thanks guys. I gotta say, if it wasnt for this forum I’d be in trouble.