Skip to content

Commit c9130af

Browse files
committed
Fix typo and link
1 parent d69f823 commit c9130af

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,6 @@ JSON modules share the performance advantage of JSON.parse, because they basical
150150

151151
I've placed a simple demo of this difference [here](https://dandclark.github.io/json-css-module-notes/demo4/index.html). Both versions load the same 35 MB of JSON content. One loads it as a JSON module and the other inlines the content as a JavaScript object. Over 10 runs, all from a cold start, I observe the JSON module version loading in an average of 581 ms while the JS object version takes 1769 ms.
152152

153-
Another alternative is to inline the content as a JS string fed directly to JSON.parse, rather than going through a JSON module. However, this approach can easily suffer from the same pitfall outlined in [Demo 2](https://dandclark.github.io/json-css-module-notes/demo2/index.html)
154-
where the string never garbage collectible, resulting in unnecessary memory bloat relative to the JSON modules approach.
153+
Another alternative is to inline the content as a JS string fed directly to JSON.parse, rather than going through a JSON module. However, this approach can easily suffer from the same pitfall outlined in [Demo 2](https://dandclark.github.io/json-css-module-notes/demo2/index.html) where the string is never garbage collectible, resulting in unnecessary memory bloat relative to the JSON modules approach.
155154

156-
Sample JSON date obtained (and modified to reduce size) from [here](https://github.com/zemirco/sf-city-lots-json); see LICENSE.txt file.
155+
Sample JSON date obtained (and modified to reduce size) from [here](https://github.com/zemirco/sf-city-lots-json); see [LICENSE.txt](License.txt) file.

0 commit comments

Comments
 (0)