'use strict';

define([
    'jquery',
    'underscore',
    'backbone',
    'router-front-frontrouter',
    'router-forum-forumrouter',
    'router-tag-tagrouter',
], function($, _, Backbone, FrontPageRoter, ForumRouter, TagRouter) {
    var initialize = function() {
        // TODO: Write all application routers, and start them here
        FrontPageRoter.initialize();
        ForumRouter.initialize();
        TagRouter.initialize();

        // Kicking off routing
        Backbone.history.start({
            pushState: true,
            hashChange: false // Continue using URLs for older browsers
        });
    };

    return {
        initialize: initialize
    };
});

'use strict';

define([
    'jquery',
    'underscore',
    'backbone',
    'router-front-frontrouter',
    'router-forum-forumrouter',
    'router-tag-tagrouter',
], function($, _, Backbone, FrontPageRoter, ForumRouter, TagRouter) {
    var initialize = function() {
        FrontPageRoter.initialize();
        ForumRouter.initialize();
        TagRouter.initialize();

        // Kicking off routing
        Backbone.history.start({
            silent: true, // Don't trigger on the initial page
            pushState: true,
            hashChange: false // Continue using URLs for older browsers
        });
    };

    return {
        initialize: initialize
    };
});

Add silent start to `Backbone.history.start` call
Add silent start to `Backbone.history.start` call
