Commit 51dbde61 by Clinton Blackburn

JS Optimization

Added data table view to main application file. This should result in the code being loaded once, upon the initial visit, and not being loaded for every data page. Total savings should be about 100KB (uncompressed) for each data page load.
parent 1b062b2e
......@@ -2,8 +2,12 @@
* Load scripts needed across the application.
*/
require(['bootstrap', 'bootstrap_accessibility', 'vendor/domReady!', 'load/init-page', 'views/announcement-view'],
function (bootstrap, bootstrap_accessibility, doc, page, AnnouncementView) {
require(['bootstrap',
'bootstrap_accessibility',
'vendor/domReady!', 'load/init-page',
'views/data-table-view',
'views/announcement-view'],
function (bootstrap, bootstrap_accessibility, doc, page, DataTableView, AnnouncementView) {
'use strict';
// Instantiate the announcement view(s)
......
Markdown is supported
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