Skip to content

Commit

Permalink
Edits for JavaScript 2021 chapter (#2614)
Browse files Browse the repository at this point in the history
* Edits for JavaScript 2021 chapter

* Resolved some TODOs

* Resolved TODO

* Fixed They say, "to measure is the key towards improvement"

* Updated conclusion paragraph

* remove todo

* edits

* Optimised images with calibre/image-actions

* how much do we load

* Optimised images with calibre/image-actions

* how is javascript requested

* how is it delivered

* libraries and frameworks

* Optimised images with calibre/image-actions

* components and conclusion

* Optimised images with calibre/image-actions

* Update src/content/en/2021/javascript.md

* spellcheck

Co-authored-by: Rick Viscomi <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Rick Viscomi <[email protected]>
  • Loading branch information
4 people authored Dec 1, 2021
1 parent d13c978 commit 1c5fc84
Show file tree
Hide file tree
Showing 30 changed files with 268 additions and 287 deletions.
24 changes: 24 additions & 0 deletions sql/2021/javascript/web_components_pct.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
SELECT
client,
custom_elements,
shadow_roots,
templates,
total,
custom_elements / total AS pct_custom_elements,
shadow_roots / total AS pct_shadow_roots,
templates / total AS pct_templates
FROM (
SELECT
client,
COUNT(0) AS total,
COUNTIF(ARRAY_LENGTH(JSON_EXTRACT_ARRAY(js, '$.web_component_specs.custom_elements')) > 0) AS custom_elements,
COUNTIF(ARRAY_LENGTH(JSON_EXTRACT_ARRAY(js, '$.web_component_specs.shadow_roots')) > 0) AS shadow_roots,
COUNTIF(ARRAY_LENGTH(JSON_EXTRACT_ARRAY(js, '$.web_component_specs.template')) > 0) AS templates
FROM (
SELECT
_TABLE_SUFFIX AS client,
JSON_EXTRACT_SCALAR(payload, '$._javascript') AS js
FROM
`httparchive.pages.2021_09_01_*`)
GROUP BY
client)
3 changes: 1 addition & 2 deletions src/config/2021.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
"part": "I",
"chapter_number": "2",
"title": "JavaScript",
"slug": "javascript",
"todo": "true"
"slug": "javascript"
},
{
"part": "I",
Expand Down
528 changes: 243 additions & 285 deletions src/content/en/2021/javascript.md

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/static/images/2021/compression/content-encoding.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/static/images/2021/javascript/ajax-apis-per-year.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/static/images/2021/javascript/ajax_beacon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/static/images/2021/javascript/ajax_fetch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/static/images/2021/javascript/ajax_xhr.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/static/images/2021/javascript/async-requests-per-page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/static/images/2021/javascript/compression-requests.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/static/images/2021/javascript/javascript-bytes-per-page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/static/images/2021/javascript/js-libs-frameworks.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/static/images/2021/javascript/js-requests-desktop-host.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/static/images/2021/javascript/js-requests-mobile-host.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/static/images/2021/javascript/js-requests-per-page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/static/images/2021/javascript/js-resources-over-years.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/static/images/2021/javascript/prefetch-hints-per-page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/static/images/2021/javascript/preload-hints-per-page.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/static/images/2021/javascript/unminified-js-audit-scores.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/static/images/2021/javascript/unminified-js-bytes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/static/images/2021/javascript/unused-vs-total-javascript.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified src/static/images/2021/javascript/usage-sync-async.png

0 comments on commit 1c5fc84

Please sign in to comment.