Skip to content

Commit 037e5e6

Browse files
quickstart: google closure overview update
1 parent 3bea7e8 commit 037e5e6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/quickstart/google-clojure.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# Google Closure
22

3-
In order to abstract away JavaScript environment differences ClojureScript relies on the [Google Closure Library](https://developers.google.com/closure/library/) (GCL). GCL supplies an important facility missing from JavaScript: namespaces and a way to declare dependencies between them. In fact ClojureScript namespaces get compiled to Google Closure namespaces.
3+
ClojueScript uses [Google Closure Library](https://developers.google.com/closure/library/) (GCL) to abstract away JavaScript environment differences. GCL provides support for namespaces and a means to declare dependencies between them. ClojureScript namespaces are compiled to Google Closure namespaces.
44

5-
Loading dependencies correctly across various browser targets is a surprisingly tricky affair. GCL accomplishes this by maintaining a
6-
dependency graph. When you require a namespace it will write the needed script tags in dependency order for you.
5+
Loading dependencies correctly across various browser targets is a surprisingly tricky affair.l
6+
7+
GCL maintains a dependency graph of the project to manage the loading of dependencies correctly, especially across various browser targets. Require a namespace in ClojureScript and GCL writes the script tags in dependency order.
78

89
So what went wrong? If you look at `out/main.js` you will see some dependency graph building calls:
910

0 commit comments

Comments
 (0)