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

Optimize emoji loader #4562

Closed
wants to merge 51 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
ef48a66
Use sessionStorage to avoid running browserSupportsEmoji() every page…
westonruter Jun 7, 2023
dcbdb8e
Implement POC for leveraging OffscreenCanvas for browserSupportsEmoji
westonruter Jun 7, 2023
a50b8b2
Simplify promise resolving
westonruter Jun 7, 2023
2435025
Remove needless variable
westonruter Jun 7, 2023
7586e0f
Use once for DOMContentLoaded event listener
westonruter Jun 7, 2023
5cc2972
Reformat browserSupportsEmojiOptimized with prettier
westonruter Jun 7, 2023
dfe270d
Use prettier and ES6+ syntax for new code; fix jsdoc
westonruter Jun 7, 2023
c7cc4b7
Add missing check for OffscreenCanvas being defined
westonruter Jun 7, 2023
2997005
Implement willReadFrequently option for context
westonruter Jun 7, 2023
894839e
Merge branch 'trunk' of https://github.com/WordPress/wordpress-develo…
westonruter Jun 16, 2023
44c09ee
Prevent JS minification from breaking code exported to web worker
westonruter Jun 16, 2023
90c258a
Use ES6+ syntax, add/fix jsdoc, fix JSHint issues, apply Prettier
westonruter Jun 16, 2023
ea8a4e6
Fix jshint issue in user-profile.js caused by esversion bump
westonruter Jun 16, 2023
6d1f07a
Split up jsdoc
westonruter Jun 16, 2023
c1e82f3
Make use of document.head
westonruter Jun 16, 2023
a9f1367
Fix jsdoc for async function return value
westonruter Jun 16, 2023
0752236
Comment-out jsvalidate from Gruntfile
westonruter Jun 17, 2023
92340ab
Add .eslintrc.js to enable es2017 env
westonruter Jun 17, 2023
81c4e58
Merge branch 'trunk' of https://github.com/WordPress/wordpress-develo…
westonruter Jun 26, 2023
99a15e8
Sort globals in .jshintrc
westonruter Jun 26, 2023
3041f2b
Improve construction of workerScript string
dmsnell Jun 26, 2023
68879b0
Use Uint32Array view and improve variable name
westonruter Jun 26, 2023
68af84e
Eliminate arrow functions, const/let, template literals, JSHint/ESLIn…
westonruter Jun 26, 2023
496d81a
Move session storage logic into helper functions
westonruter Jun 26, 2023
10c0ec9
Eliminate await for DOM ready
westonruter Jun 26, 2023
fe1fa85
Improve naming
westonruter Jun 26, 2023
f763831
Remove trailing comma
westonruter Jun 26, 2023
51ee620
Isolate sessionSupports logic
westonruter Jun 26, 2023
bd2a5c4
Reuse canvas and use promises
westonruter Jun 27, 2023
34fee43
Add typedef
westonruter Jun 27, 2023
401de5c
Revert changes to jsvalidate
westonruter Jun 27, 2023
a9398eb
Revert user-profile.js change now that esversion is back to 3
westonruter Jun 27, 2023
94b912f
Fix promise usage and jsdoc
westonruter Jun 27, 2023
9d8a4dc
Move tests variable up
westonruter Jun 27, 2023
2655798
Improve code order
westonruter Jun 27, 2023
2824e66
Fix logic in getSessionSupports
westonruter Jun 27, 2023
2702c15
Remove jsdoc strings since adds to byte size
westonruter Jun 27, 2023
3d5de0d
Improve comment explaining workerScript var
westonruter Jun 27, 2023
ec05f56
Add wpEmojiLoader function name
westonruter Jun 27, 2023
1dc5459
Merge branch 'trunk' of https://github.com/WordPress/wordpress-develo…
westonruter Jun 27, 2023
6b389cd
Add try/catch block around Worker init code
westonruter Jun 27, 2023
76f9518
Short-circuit if Promises aren't supported
westonruter Jun 27, 2023
1ee96c7
Add props to WPEmojiSettings
westonruter Jun 27, 2023
aaf5718
Eliminate needless sessionSupportsPromise variable
westonruter Jun 27, 2023
4a6ac8a
Fix DOMReady and readyCallback type def
westonruter Jun 27, 2023
d694445
Add expiration to session data
westonruter Jun 27, 2023
12d0e20
Remove trailing comma
westonruter Jun 27, 2023
c037e35
Merge branch 'trunk' of https://github.com/WordPress/wordpress-develo…
westonruter Jun 27, 2023
a529763
Remove duplicated object assignment
westonruter Jun 27, 2023
4b4b8d8
Merge branch 'trunk' of https://github.com/WordPress/wordpress-develo…
westonruter Jun 27, 2023
b27e713
Bump session support tests cache from 1 day to 1 week
westonruter Jun 27, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 5 additions & 1 deletion .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
"wp": false,
"export": false,
"module": false,
"require": false
"require": false,
"WorkerGlobalScope": false,
"self": false,
"OffscreenCanvas": false,
"Promise": false
}
}