Skip to content

Instantly share code, notes, and snippets.

@JoshuaRamirez
Created May 2, 2013 22:02
Show Gist options
  • Save JoshuaRamirez/5505816 to your computer and use it in GitHub Desktop.
Save JoshuaRamirez/5505816 to your computer and use it in GitHub Desktop.
A nice way to use the same requirejs 'main' entry point file.
var screenName = $("html").data("screen");
requirejs(
["ClientApp/Boosters/" + screenName + "App"],
function (application) {
$(document).ready(application.Boost);
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment