Reputation: 9151
This site: http://www.bienvillecapital.com/themes
Has somehow managed to make it look as if new content (when clicking on a link) is loaded with ajax. They also managed to remove the browser loading indicator.
Any ideas how this is done?
Upvotes: 0
Views: 121
Reputation: 436
Look at this .ajaxComplete() - http://api.jquery.com/ajaxComplete/
example;
$(document).(function(){
// Your Codes
}).ajaxComplete(function(){
alert("Ajax completed.");
});
it works each ajax process.
Upvotes: 0
Reputation: 25029
This site is a single-page application you can add some similar functionality with JQuery create an event so every time the user clicks on a link the content will be loaded via ajax.
But single-page applications are more than just loading contents via AJAX. If you want to do it right you should use a modern JS framework like http://chaplinjs.org/ or http://angularjs.org/
There are many reasons to use one of those frameworks.
Upvotes: 1