Skip to content

Instantly share code, notes, and snippets.

@agragregra
Last active April 20, 2025 18:50
Show Gist options
  • Select an option

  • Save agragregra/073ddeb27938d81e01e5 to your computer and use it in GitHub Desktop.

Select an option

Save agragregra/073ddeb27938d81e01e5 to your computer and use it in GitHub Desktop.

Revisions

  1. agragregra revised this gist Mar 19, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion jQuery Page Preload
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,7 @@
    #loaderInner {
    background-image: url("../img/load.gif");
    background-repeat: no-repeat;
    background-posirion: center center;
    background-position: center center;
    background-color: #fff;
    height: 60px;
    width: 60px;
  2. agragregra revised this gist Feb 18, 2015. 1 changed file with 25 additions and 0 deletions.
    25 changes: 25 additions & 0 deletions jQuery Page Preload
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,28 @@
    #loader {
    background: none repeat scroll 0 0 #ffffff;
    bottom: 0;
    height: 100%;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 9999;
    }
    #loaderInner {
    background-image: url("../img/load.gif");
    background-repeat: no-repeat;
    background-posirion: center center;
    background-color: #fff;
    height: 60px;
    width: 60px;
    margin-top: -30px;
    margin-left: -30px;
    left: 50%;
    top: 50%;
    position: absolute;
    }

    $(window).load(function() {
    $("#loaderInner").fadeOut();
    $("#loader").delay(400).fadeOut("slow");
  3. agragregra created this gist Feb 18, 2015.
    4 changes: 4 additions & 0 deletions jQuery Page Preload
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    $(window).load(function() {
    $("#loaderInner").fadeOut();
    $("#loader").delay(400).fadeOut("slow");
    });