Loader bug jquery

0

people have a problem with my jquery jQuery:

/Pre-Loader
     jQuery(window).load(function () {

         $('.site').hide(1);
         $('.id-sub').hide();
         $("#loading").fadeOut(2000,function(){
             $('.site').show("slow");
             $('#n2-ss-2-align').show(1);
             var currentPage = window.location.hash;//captura o link da pagina
             if (currentPage) {
                 $(currentPage).slideDown(2000).addClass('fixed');
                 $('html,body').animate({ 'scrollTop': $(currentPage).offset().top });
             }
    });



     });

I'm doing above hiding the .site but if I do not use $('.site').hide(1); the value 1 and leave my Slider worthless does not appear I'm using plugin Smart Slider however if I leave with (1) it shows the content hiding could you help me solve this problem?

NOTE: I already used tbm .css("display", "none"); and it does not work.

    
asked by anonymous 20.07.2018 / 15:00

0 answers