code: function() {
          if (self.currentPercentage === 100) {
            $container.delay(1000).fadeOut(function() {
              $container.remove();
              if (typeof options.onComplete === "function")
                options.onComplete();
            });
            $window.off("resize.preloader");
          }
        }
docs: /*
  
  Check if the precentage is equal to 100% to remove the preloader