Skip to content
Browse files
AMD: Note on AMD best practices
Fixes #14687
Closes gh-1478
  • Loading branch information
sheppard authored and dmethvin committed Mar 13, 2014
1 parent 854d242 commit 2585ee58809c22a3c97f87b1b4aa68dbd41f386c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
@@ -215,3 +215,4 @@ John Paul <>
Jakob Stoeck <>
Christopher Jones <>
Forbes Lindesay <>
S. Andrew Sheppard <>
@@ -9,6 +9,12 @@ define([
// derived from file names, and jQuery is normally delivered in a lowercase
// file name. Do this after creating the global so that if an AMD module wants
// to call noConflict to hide this version of jQuery, it will work.

// Note that for maximum portability, libraries that are not jQuery should
// declare themselves as anonymous modules, and avoid setting a global if an
// AMD loader is present. jQuery is a special case. For more information, see

if ( typeof define === "function" && define.amd ) {
define( "jquery", [], function() {
return jQuery;

0 comments on commit 2585ee5

Please sign in to comment.