diff --git a/README.md b/README.md
index ac92891..7e70363 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,7 @@
Fun functional programming
- A 7kb framework for creating sturdy frontend applications
+ A 5kb framework for creating sturdy frontend applications
@@ -88,7 +88,7 @@
- [License](#license)
## Features
-- __minimal size:__ weighing `7kb`, `choo` is a tiny little framework
+- __minimal size:__ weighing `5kb`, `choo` is a tiny little framework
- __single state:__ immutable single state helps reason about changes
- __small api:__ with only 6 methods, there's not a lot to learn
- __minimal tooling:__ built for the cutting edge `browserify` compiler
@@ -797,6 +797,9 @@ Consider running some of the following:
statements which reduces file size. Use as a `--global` transform
- [es2020](https://github.com/yoshuawuyts/es2020) - backport `const`,
`fat-arrows` and `template strings` to older browsers
+- [yo-yoify](https://github.com/shama/yo-yoify) - replace the internal `hyperx`
+ dependency with `document.createElement` calls; greatly speeds up performance
+ too
- [uglifyify](https://github.com/hughsk/uglifyify) - minify your code using
UglifyJS2. Use as a `--global` transform
- [bulkify](https://www.npmjs.com/package/bulkify) - transform inline
@@ -821,6 +824,7 @@ Generally for production builds you'll want to run:
```sh
$ NODE_ENV=production browserify \
-t envify \
+ -g yo-yoify \
-g unassertify \
-g es2020 \
-g uglifyify \
diff --git a/package.json b/package.json
index d57e620..d91c355 100644
--- a/package.json
+++ b/package.json
@@ -47,6 +47,7 @@
"standard": "^7.1.0",
"tachyons": "^4.0.0-beta.19",
"tape": "^4.5.1",
+ "yo-yoify": "^3.1.0",
"zuul": "toddself/zuul"
}
}
diff --git a/scripts/test-size b/scripts/test-size
index 7e6d456..009daf9 100755
--- a/scripts/test-size
+++ b/scripts/test-size
@@ -13,6 +13,7 @@ USAGE
gzip_size () {
browserify index.js \
-g unassertify \
+ -g yo-yoify \
-g es2020 \
-g uglifyify \
-p bundle-collapser/plugin \
@@ -24,6 +25,7 @@ gzip_size () {
min_size () {
browserify index.js \
-g unassertify \
+ -g yo-yoify \
-g es2020 \
-g uglifyify \
-p bundle-collapser/plugin \
@@ -35,6 +37,7 @@ min_size () {
run_discify () {
browserify index.js --full-paths \
-g unassertify \
+ -g yo-yoify \
-g es2020 \
-g uglifyify \
| uglifyjs \