Created
March 24, 2015 18:23
-
-
Save johngrant/d8958ed4f51e1285c12b to your computer and use it in GitHub Desktop.
Loading minified and compressed bundles of 3rd party code then my own code.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@section scriptloader { | |
$script(['https://code.jquery.com/ui/1.9.2/jquery-ui.min.js'], 'jquery-ui'); | |
$script.ready('jquery-ui', function() { | |
$script([ | |
'@Url.Content("~/bundles/ko-js")', | |
'@Url.Content("~/bundles/jqueryval")', | |
'@Url.Content("~/bundles/jquery-cropbox")', | |
'@Url.Content("~/bundles/jquery-file-upload")', | |
],'3rd-party'); | |
$script.ready('3rd-party', function() { | |
$script([ | |
'@Url.Content("~/Scripts/lib/bootstrap3-editable/bootstrap-editable.js")', | |
'@Url.Content("~/Scripts/lib/nplay/agent/profile/bindings-text-editable.js")', | |
'@Url.Content("~/Scripts/lib/nplay/agent/profile/bindings-list-editable.js")', | |
'@Url.Content("~/Scripts/lib/nplay/agent/profile/bindings-selected-objects.js")', | |
'@Url.Content("~/Scripts/lib/nplay/shared/debounce.js")', | |
'@Url.Content("~/Scripts/lib/nplay/agent/profile/zipcodes-controller.js")', | |
'@Url.Content("~/Scripts/lib/nplay/agent/profile/profile.js")', | |
'@Url.Content("~/Scripts/lib/nplay/services/profile-api.js")', | |
'@Url.Content("~/Scripts/lib/nplay/agent/profile/profile-controller.js")', | |
'@Url.Content("~/Scripts/lib/nplay/agent/profile/profileimageupload.js")', | |
], 'profile-app'); | |
$script.ready('profile-app', function() { | |
var profile = new nplay.controllers.profile(); | |
profile.initialize().done(function (app) {window.app = app;}); | |
}) | |
}); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment