Last Updated: February 25, 2016
·
852
· restlessdesign

“Rocket Sauce”

Give your pages the illusion of speed by hiding content on the current page before the next page request comes through. Try running the snippet below from your console (works on this page).

window.onbeforeunload = function() {
    // Alternately, set a class on a collection 
    // of elements that you wish to hide.
    $('#clrpsa').css('opacity', 0);

    // Use when navigating to pages with the same header
    window.scroll(0, 0);
}