mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 07:12:31 +03:00
Fix typos from amd.html PR https://github.com/adambard/learnxinyminutes-docs/pull/803
This commit is contained in:
parent
0ec14c6914
commit
780826ac27
@ -8,7 +8,11 @@ filename: learnamd.js
|
|||||||
|
|
||||||
## Getting Started with AMD
|
## Getting Started with AMD
|
||||||
|
|
||||||
The **Asynchronous Module Definition** API specifies a mechanism for defining JavaScript modules such that the module and its dependencies can be asynchronously loaded. This is particularly well suited for the browser environment where synchronous loading of modules incurs performance, usability, debugging, and cross-domain access problems.
|
The **Asynchronous Module Definition** API specifies a mechanism for defining
|
||||||
|
JavaScript modules such that the module and its dependencies can be asynchronously
|
||||||
|
loaded. This is particularly well suited for the browser environment where
|
||||||
|
synchronous loading of modules incurs performance, usability, debugging, and
|
||||||
|
cross-domain access problems.
|
||||||
|
|
||||||
### Basic concept
|
### Basic concept
|
||||||
```javascript
|
```javascript
|
||||||
@ -55,7 +59,7 @@ require(['loudmouth'], function(loudmouth){
|
|||||||
loudmouth();
|
loudmouth();
|
||||||
});
|
});
|
||||||
|
|
||||||
// To make this tutorial running code, let's implement a very basic
|
// To make this tutorial run code, let's implement a very basic
|
||||||
// (non-asynchronous) version of AMD right here on the spot:
|
// (non-asynchronous) version of AMD right here on the spot:
|
||||||
function define(name, deps, factory){
|
function define(name, deps, factory){
|
||||||
// notice how modules without dependencies are handled
|
// notice how modules without dependencies are handled
|
||||||
|
Loading…
Reference in New Issue
Block a user