Skip to content

Commit

Permalink
Clarify prime comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Trent Willis committed Feb 17, 2017
1 parent 562ecf1 commit cda1c29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/loader/loader.js
Expand Up @@ -309,7 +309,8 @@ var loader, define, requireModule, require, requirejs;
seen = dict();
};

// prime
// This code primes the JS engine for good performance by warming the
// JIT compiler for these functions.
define('foo', function() {});
define('foo/bar', [], function() {});
define('foo/asdf', ['module', 'exports', 'require'], function(module, exports, require) {
Expand Down

0 comments on commit cda1c29

Please sign in to comment.