-
Notifications
You must be signed in to change notification settings - Fork 26k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
temporary: re-flag font optimization #20372
Conversation
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
buildDuration | 8.4s | 8.8s | |
nodeModulesSize | 82.6 MB | 82.6 MB |
Page Load Tests Overall increase ✓
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 1.997 | 1.77 | -0.23 |
/ avg req/sec | 1251.88 | 1412.22 | +160.34 |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.085 | 1.098 | |
/error-in-render avg req/sec | 2303.37 | 2276.23 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
677f882d2ed8..5e70.js gzip | 12.8 kB | 12.8 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-1f21dcf..0011.js gzip | 6.56 kB | 6.56 kB | ✓ |
webpack-95c2..e870.js gzip | 751 B | 751 B | ✓ |
Overall change | 59 kB | 59 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
polyfills-d3..23f6.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages Overall decrease ✓
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
_app-0d19cb6..5497.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-2cf0e..a0a0.js gzip | 3.69 kB | 3.44 kB | -257 B |
hooks-42456f..0c06.js gzip | 887 B | 887 B | ✓ |
index-8081ce..e44f.js gzip | 227 B | 227 B | ✓ |
link-0ab9f83..fa00.js gzip | 1.61 kB | 1.61 kB | ✓ |
routerDirect..c3d8.js gzip | 303 B | 303 B | ✓ |
withRouter-0..a68e.js gzip | 302 B | 302 B | ✓ |
Overall change | 8.31 kB | 8.05 kB | -257 B |
Client Build Manifests
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
_buildManifest.js gzip | 323 B | 323 B | ✓ |
Overall change | 323 B | 323 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
index.html gzip | 612 B | 612 B | ✓ |
link.html gzip | 619 B | 619 B | ✓ |
withRouter.html gzip | 608 B | 608 B | ✓ |
Overall change | 1.84 kB | 1.84 kB | ✓ |
Diffs
Diff for _buildManifest.js
@@ -2,7 +2,7 @@ self.__BUILD_MANIFEST = {
__rewrites: [],
"/": ["static\u002Fchunks\u002Fpages\u002Findex-283eed3c1520dcc26e8d.js"],
"/_error": [
- "static\u002Fchunks\u002Fpages\u002F_error-fbaccf4d6b3c31a2915e.js"
+ "static\u002Fchunks\u002Fpages\u002F_error-671dbf297c19f6f715f8.js"
],
"/hooks": [
"static\u002Fchunks\u002Fpages\u002Fhooks-bdd2cad07648acf22380.js"
Diff for _error-fbacc..c31a2915e.js
@@ -535,23 +535,8 @@ Also adds support for deduplicated `key` properties
.map(function(c, i) {
var key = c.key || i;
- if (true && !props.inAmpMode) {
- if (
- c.type === "link" &&
- c.props["href"] && // TODO(prateekbh@): Replace this with const from `constants` when the tree shaking works.
- ["https://fonts.googleapis.com/css"].some(function(url) {
- return c.props["href"].startsWith(url);
- })
- ) {
- var newProps = _objectSpread({}, c.props || {});
-
- newProps["data-href"] = newProps["href"];
- newProps["href"] = undefined;
- return /*#__PURE__*/ _react["default"].cloneElement(
- c,
- newProps
- );
- }
+ if (false) {
+ var newProps;
}
return /*#__PURE__*/ _react["default"].cloneElement(c, {
Serverless Mode (Decrease detected ✓)
General Overall increase ⚠️
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
buildDuration | 9.8s | 10.5s | |
nodeModulesSize | 82.6 MB | 82.6 MB |
Client Bundles (main, webpack, commons)
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
677f882d2ed8..5e70.js gzip | 12.8 kB | 12.8 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-1f21dcf..0011.js gzip | 6.56 kB | 6.56 kB | ✓ |
webpack-95c2..e870.js gzip | 751 B | 751 B | ✓ |
Overall change | 59 kB | 59 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
polyfills-d3..23f6.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages Overall decrease ✓
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
_app-0d19cb6..5497.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-2cf0e..a0a0.js gzip | 3.69 kB | N/A | N/A |
hooks-42456f..0c06.js gzip | 887 B | 887 B | ✓ |
index-8081ce..e44f.js gzip | 227 B | 227 B | ✓ |
link-0ab9f83..fa00.js gzip | 1.61 kB | 1.61 kB | ✓ |
routerDirect..c3d8.js gzip | 303 B | 303 B | ✓ |
withRouter-0..a68e.js gzip | 302 B | 302 B | ✓ |
_error-85785..a9f3.js gzip | N/A | 3.44 kB | N/A |
Overall change | 8.31 kB | 8.05 kB | -257 B |
Client Build Manifests
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
_buildManifest.js gzip | 323 B | 323 B | ✓ |
Overall change | 323 B | 323 B | ✓ |
Serverless bundles Overall decrease ✓
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
_error.js | 1 MB | 1 MB | -907 B |
404.html | 2.67 kB | 2.67 kB | ✓ |
hooks.html | 1.92 kB | 1.92 kB | ✓ |
index.js | 1 MB | 1 MB | -907 B |
link.js | 1.06 MB | 1.06 MB | -907 B |
routerDirect.js | 1.05 MB | 1.05 MB | -907 B |
withRouter.js | 1.05 MB | 1.05 MB | -907 B |
Overall change | 5.16 MB | 5.16 MB | -4.54 kB |
Failing test suitesCommit: 36489da test/integration/font-optimization/test/index.test.js
Expand output● Font optimization for emulated serverless apps › should inline the google fonts for static pages
● Font optimization for emulated serverless apps › should inline the google fonts for static pages with Next/Head
● Font optimization for emulated serverless apps › should inline the google fonts for SSR pages
|
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
buildDuration | 8.7s | 8.6s | -187ms |
nodeModulesSize | 82.6 MB | 82.6 MB |
Page Load Tests Overall increase ✓
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.128 | 1.677 | -0.45 |
/ avg req/sec | 1174.92 | 1491.04 | +316.12 |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.065 | 1.074 | |
/error-in-render avg req/sec | 2347.57 | 2327.47 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
677f882d2ed8..5e70.js gzip | 12.8 kB | 12.8 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-1f21dcf..0011.js gzip | 6.56 kB | 6.56 kB | ✓ |
webpack-95c2..e870.js gzip | 751 B | 751 B | ✓ |
Overall change | 59 kB | 59 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
polyfills-d3..23f6.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages Overall decrease ✓
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
_app-0d19cb6..5497.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-2cf0e..a0a0.js gzip | 3.69 kB | 3.44 kB | -257 B |
hooks-42456f..0c06.js gzip | 887 B | 887 B | ✓ |
index-8081ce..e44f.js gzip | 227 B | 227 B | ✓ |
link-0ab9f83..fa00.js gzip | 1.61 kB | 1.61 kB | ✓ |
routerDirect..c3d8.js gzip | 303 B | 303 B | ✓ |
withRouter-0..a68e.js gzip | 302 B | 302 B | ✓ |
Overall change | 8.31 kB | 8.05 kB | -257 B |
Client Build Manifests
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
_buildManifest.js gzip | 323 B | 323 B | ✓ |
Overall change | 323 B | 323 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
index.html gzip | 612 B | 612 B | ✓ |
link.html gzip | 619 B | 619 B | ✓ |
withRouter.html gzip | 608 B | 608 B | ✓ |
Overall change | 1.84 kB | 1.84 kB | ✓ |
Diffs
Diff for _buildManifest.js
@@ -2,7 +2,7 @@ self.__BUILD_MANIFEST = {
__rewrites: [],
"/": ["static\u002Fchunks\u002Fpages\u002Findex-283eed3c1520dcc26e8d.js"],
"/_error": [
- "static\u002Fchunks\u002Fpages\u002F_error-fbaccf4d6b3c31a2915e.js"
+ "static\u002Fchunks\u002Fpages\u002F_error-671dbf297c19f6f715f8.js"
],
"/hooks": [
"static\u002Fchunks\u002Fpages\u002Fhooks-bdd2cad07648acf22380.js"
Diff for _error-fbacc..c31a2915e.js
@@ -535,23 +535,8 @@ Also adds support for deduplicated `key` properties
.map(function(c, i) {
var key = c.key || i;
- if (true && !props.inAmpMode) {
- if (
- c.type === "link" &&
- c.props["href"] && // TODO(prateekbh@): Replace this with const from `constants` when the tree shaking works.
- ["https://fonts.googleapis.com/css"].some(function(url) {
- return c.props["href"].startsWith(url);
- })
- ) {
- var newProps = _objectSpread({}, c.props || {});
-
- newProps["data-href"] = newProps["href"];
- newProps["href"] = undefined;
- return /*#__PURE__*/ _react["default"].cloneElement(
- c,
- newProps
- );
- }
+ if (false) {
+ var newProps;
}
return /*#__PURE__*/ _react["default"].cloneElement(c, {
Serverless Mode (Decrease detected ✓)
General Overall increase ⚠️
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
buildDuration | 10.1s | 10.2s | |
nodeModulesSize | 82.6 MB | 82.6 MB |
Client Bundles (main, webpack, commons)
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
677f882d2ed8..5e70.js gzip | 12.8 kB | 12.8 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-1f21dcf..0011.js gzip | 6.56 kB | 6.56 kB | ✓ |
webpack-95c2..e870.js gzip | 751 B | 751 B | ✓ |
Overall change | 59 kB | 59 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
polyfills-d3..23f6.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages Overall decrease ✓
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
_app-0d19cb6..5497.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-2cf0e..a0a0.js gzip | 3.69 kB | N/A | N/A |
hooks-42456f..0c06.js gzip | 887 B | 887 B | ✓ |
index-8081ce..e44f.js gzip | 227 B | 227 B | ✓ |
link-0ab9f83..fa00.js gzip | 1.61 kB | 1.61 kB | ✓ |
routerDirect..c3d8.js gzip | 303 B | 303 B | ✓ |
withRouter-0..a68e.js gzip | 302 B | 302 B | ✓ |
_error-85785..a9f3.js gzip | N/A | 3.44 kB | N/A |
Overall change | 8.31 kB | 8.05 kB | -257 B |
Client Build Manifests
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
_buildManifest.js gzip | 323 B | 323 B | ✓ |
Overall change | 323 B | 323 B | ✓ |
Serverless bundles Overall decrease ✓
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
_error.js | 1 MB | 1 MB | -907 B |
404.html | 2.67 kB | 2.67 kB | ✓ |
hooks.html | 1.92 kB | 1.92 kB | ✓ |
index.js | 1 MB | 1 MB | -907 B |
link.js | 1.06 MB | 1.06 MB | -907 B |
routerDirect.js | 1.05 MB | 1.05 MB | -907 B |
withRouter.js | 1.05 MB | 1.05 MB | -907 B |
Overall change | 5.16 MB | 5.16 MB | -4.54 kB |
Failing test suitesCommit: 6024bae test/integration/required-server-files/test/index.test.js
Expand output● Required Server Files › should output required-server-files manifest correctly
|
Stats from current PRDefault Server Mode (Increase detected
|
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
buildDuration | 11.4s | 11.2s | -253ms |
nodeModulesSize | 82.6 MB | 82.6 MB |
Page Load Tests Overall increase ✓
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
/ failed reqs | 0 | 0 | ✓ |
/ total time (seconds) | 2.762 | 2.328 | -0.43 |
/ avg req/sec | 905 | 1073.93 | +168.93 |
/error-in-render failed reqs | 0 | 0 | ✓ |
/error-in-render total time (seconds) | 1.603 | 1.637 | |
/error-in-render avg req/sec | 1559.34 | 1526.74 |
Client Bundles (main, webpack, commons)
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
677f882d2ed8..5e70.js gzip | 12.8 kB | 12.8 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-1f21dcf..0011.js gzip | 6.56 kB | 6.56 kB | ✓ |
webpack-95c2..e870.js gzip | 751 B | 751 B | ✓ |
Overall change | 59 kB | 59 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
polyfills-d3..23f6.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages Overall decrease ✓
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
_app-0d19cb6..5497.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-2cf0e..a0a0.js gzip | 3.69 kB | 3.44 kB | -257 B |
hooks-42456f..0c06.js gzip | 887 B | 887 B | ✓ |
index-8081ce..e44f.js gzip | 227 B | 227 B | ✓ |
link-0ab9f83..fa00.js gzip | 1.61 kB | 1.61 kB | ✓ |
routerDirect..c3d8.js gzip | 303 B | 303 B | ✓ |
withRouter-0..a68e.js gzip | 302 B | 302 B | ✓ |
Overall change | 8.31 kB | 8.05 kB | -257 B |
Client Build Manifests
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
_buildManifest.js gzip | 323 B | 323 B | ✓ |
Overall change | 323 B | 323 B | ✓ |
Rendered Page Sizes
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
index.html gzip | 612 B | 612 B | ✓ |
link.html gzip | 619 B | 619 B | ✓ |
withRouter.html gzip | 608 B | 608 B | ✓ |
Overall change | 1.84 kB | 1.84 kB | ✓ |
Diffs
Diff for _buildManifest.js
@@ -2,7 +2,7 @@ self.__BUILD_MANIFEST = {
__rewrites: [],
"/": ["static\u002Fchunks\u002Fpages\u002Findex-283eed3c1520dcc26e8d.js"],
"/_error": [
- "static\u002Fchunks\u002Fpages\u002F_error-fbaccf4d6b3c31a2915e.js"
+ "static\u002Fchunks\u002Fpages\u002F_error-671dbf297c19f6f715f8.js"
],
"/hooks": [
"static\u002Fchunks\u002Fpages\u002Fhooks-bdd2cad07648acf22380.js"
Diff for _error-fbacc..c31a2915e.js
@@ -535,23 +535,8 @@ Also adds support for deduplicated `key` properties
.map(function(c, i) {
var key = c.key || i;
- if (true && !props.inAmpMode) {
- if (
- c.type === "link" &&
- c.props["href"] && // TODO(prateekbh@): Replace this with const from `constants` when the tree shaking works.
- ["https://fonts.googleapis.com/css"].some(function(url) {
- return c.props["href"].startsWith(url);
- })
- ) {
- var newProps = _objectSpread({}, c.props || {});
-
- newProps["data-href"] = newProps["href"];
- newProps["href"] = undefined;
- return /*#__PURE__*/ _react["default"].cloneElement(
- c,
- newProps
- );
- }
+ if (false) {
+ var newProps;
}
return /*#__PURE__*/ _react["default"].cloneElement(c, {
Serverless Mode (Decrease detected ✓)
General Overall increase ⚠️
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
buildDuration | 13.2s | 13.3s | |
nodeModulesSize | 82.6 MB | 82.6 MB |
Client Bundles (main, webpack, commons)
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
677f882d2ed8..5e70.js gzip | 12.8 kB | 12.8 kB | ✓ |
framework.HASH.js gzip | 39 kB | 39 kB | ✓ |
main-1f21dcf..0011.js gzip | 6.56 kB | 6.56 kB | ✓ |
webpack-95c2..e870.js gzip | 751 B | 751 B | ✓ |
Overall change | 59 kB | 59 kB | ✓ |
Legacy Client Bundles (polyfills)
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
polyfills-d3..23f6.js gzip | 31 kB | 31 kB | ✓ |
Overall change | 31 kB | 31 kB | ✓ |
Client Pages Overall decrease ✓
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
_app-0d19cb6..5497.js gzip | 1.28 kB | 1.28 kB | ✓ |
_error-2cf0e..a0a0.js gzip | 3.69 kB | N/A | N/A |
hooks-42456f..0c06.js gzip | 887 B | 887 B | ✓ |
index-8081ce..e44f.js gzip | 227 B | 227 B | ✓ |
link-0ab9f83..fa00.js gzip | 1.61 kB | 1.61 kB | ✓ |
routerDirect..c3d8.js gzip | 303 B | 303 B | ✓ |
withRouter-0..a68e.js gzip | 302 B | 302 B | ✓ |
_error-85785..a9f3.js gzip | N/A | 3.44 kB | N/A |
Overall change | 8.31 kB | 8.05 kB | -257 B |
Client Build Manifests
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
_buildManifest.js gzip | 323 B | 323 B | ✓ |
Overall change | 323 B | 323 B | ✓ |
Serverless bundles Overall decrease ✓
vercel/next.js canary | Timer/next.js temp/reflag-font-optimization | Change | |
---|---|---|---|
_error.js | 1 MB | 1 MB | -907 B |
404.html | 2.67 kB | 2.67 kB | ✓ |
hooks.html | 1.92 kB | 1.92 kB | ✓ |
index.js | 1 MB | 1 MB | -907 B |
link.js | 1.06 MB | 1.06 MB | -907 B |
routerDirect.js | 1.05 MB | 1.05 MB | -907 B |
withRouter.js | 1.05 MB | 1.05 MB | -907 B |
Overall change | 5.16 MB | 5.16 MB | -4.54 kB |
There's currently two bugs with the font optimization, but we'd really like to ship a stable version.
To unblock the stable release, we're temporarily reflagging this. It'll be unflagged on canary again!