Switch button first click

Hi everyone,
i need another help, i used the switch button to hide and show some element in my home.
In the preview it works perfect, but in the site the first click doesn’t work! i really don’t know why! i hope some one can help me. (my site is www.vincenzotortora.com)

Thanks a lot,
Vincenzo.

I had a look at your site.
the click doesn’t work before the page is fully loaded. But it works fine after loading is done.
But you get many errors there and it might negatively affect the performance.
It seems that it tries to get some gif files and fails to find them

I found a code in another topic and now it works. Tell me about the errors, you have any advise for me?

It looks like you have expired/invalid links to some gif files (in your database?) and you’re trying to fetch them, and fail.
an invalid link for example:
https://www.vincenzotortora.com/47a103_58ad07bcb8fb48869b313d722b5d90be~mv2.gif

but you have many others like this one.

@jonatandor35 Oh! Where can i found it?

@vincenzotortora9517 to see the errors, open the console (on Chrome, click F12 then console) and reload the page (you get some different errors with every load).
To find the problematic links, you should go over your collection where you store the links.