Sometimes my event listeners work and the elements trigger the events, other times they do not. I believe it is due to a delay. However chrome states the page is fully loaded by the time. I'm clicking on elements. It is a matter of seconds, not milliseconds.
require(['jquery'],function($){
$(window).load(function() {
// Added event listeners here.
});
});
Has anyone else encountered this?