feh1ks
10/31/2016 - 9:18 AM

Load jQuery only at first visit of a page

Load jQuery only at first visit of a page

$(document).ready(function() {
    var isshow = localStorage.getItem('isshow');
    if (isshow === null) {
        localStorage.setItem('isshow', 1);

        // Show popup here
        $('#jPopup').show();
    }
});