Jquery emulate click not working

Hi, so I am facing some unexpected behavior…

I have added some custom code to the “before body” tag to emulate a click from one div to a link in a different div -


$('.home').on("click", function() {

however, this does not work, and the inspector does not show any errors, however, if I run the same script in the console, it starts working… any ideas what I should do to fix this misbehavior?

Here is my site Read-Only: LINK
(how to share your site Read-Only link)