I've got a problem with simple popup newsletter in homepage...Basically after I close the popup, if I refresh homepage, popup appears for about one second then disappear.
This is the code:
function popup(){ $('.jsclosepoup').on('click', function() { $('.jsengo_popup').addClass('d-none'); }); }
<section class="popup jsengo_popup"><div class="modal-window"><div class="window-window"><div class="window-content clearfix"><a class="close_edit jsclosepoup" title="Close" href="javascript:void(0)">ù Something useful for Newsletter...</a></div></div> </div></section>
I would like to prevent newsletter appears for a second if I already close it....