Skip to content
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

Edits for JavaScript 2021 chapter #2614

Merged
merged 23 commits into from
Dec 1, 2021
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
fe0c0c5
Edits for JavaScript 2021 chapter
shantsis Nov 29, 2021
4354417
Resolved some TODOs
shantsis Nov 29, 2021
909bdcb
Resolved TODO
shantsis Nov 29, 2021
f0a3314
Fixed They say, "to measure is the key towards improvement"
shantsis Nov 29, 2021
004c7cc
Updated conclusion paragraph
shantsis Nov 29, 2021
51fa948
Merge branch 'main' into javascript-2021-edits
rviscomi Nov 29, 2021
45fffd8
remove todo
rviscomi Nov 29, 2021
72cf95e
edits
rviscomi Nov 30, 2021
00b64b2
Merge branch 'main' into javascript-2021-edits
rviscomi Nov 30, 2021
2f8fa75
Optimised images with calibre/image-actions
github-actions[bot] Nov 30, 2021
4b61f29
how much do we load
rviscomi Nov 30, 2021
68818ac
Merge branch 'javascript-2021-edits' of github.com:HTTPArchive/almana…
rviscomi Nov 30, 2021
e2e1383
Optimised images with calibre/image-actions
github-actions[bot] Nov 30, 2021
c64f744
how is javascript requested
rviscomi Nov 30, 2021
b295bc7
Merge branch 'javascript-2021-edits' of github.com:HTTPArchive/almana…
rviscomi Nov 30, 2021
5a36918
how is it delivered
rviscomi Nov 30, 2021
5c8c7fa
libraries and frameworks
rviscomi Nov 30, 2021
ce96942
Optimised images with calibre/image-actions
github-actions[bot] Nov 30, 2021
39341bb
components and conclusion
rviscomi Nov 30, 2021
bd75356
Merge branch 'javascript-2021-edits' of github.com:HTTPArchive/almana…
rviscomi Nov 30, 2021
8ff653f
Optimised images with calibre/image-actions
github-actions[bot] Nov 30, 2021
68423c4
Update src/content/en/2021/javascript.md
rviscomi Nov 30, 2021
527c2be
spellcheck
rviscomi Dec 1, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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