Commit 0e8fe00f authored by Simon Daron's avatar Simon Daron
Browse files

Add some loading for error handling and ergonomy

parent b6f70406
......@@ -16,7 +16,6 @@ $(function() {
$('body').attr('id',bodyID);
$('html, body').animate({scrollTop: $main.offset().top-$('#metaNav').height()+2}, 500);
init();
$main.fadeIn();
};
$(window).on("popstate", function(e) {
......@@ -24,7 +23,7 @@ $(function() {
});
loadPage = function(href) {
history.pushState({}, '', href);
$main.fadeOut().load(href + " #Changing>*", null, afterLoad);
$main.load(href + " #Changing>*", null, afterLoad);
};
init = function() {
$("a, area").removeClass('loading').unbind('click').on('click',function() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment