René's URL Explorer Experiment


Title: `lazyDefine` components by koddsson · Pull Request #268 · github/catalyst · GitHub

Open Graph Title: `lazyDefine` components by koddsson · Pull Request #268 · github/catalyst

X Title: `lazyDefine` components by koddsson · Pull Request #268 · github/catalyst

Description: Catalyst is a set of patterns and techniques for developing components within a complex application. - `lazyDefine` components by koddsson · Pull Request #268 · github/catalyst

Open Graph Description: Upstream a lazyDefine function from github/github and add some tests.

X Description: Upstream a lazyDefine function from github/github and add some tests.

Opengraph URL: https://github.com/github/catalyst/pull/268

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:40826875-bff4-6916-56c7-d390eaf3f403
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8A36:4CBE1:C60BD:12164F:6A636215
html-safe-nonce083b56ca9b1210f1baf30a8d2dd29bf8a065c56419fb6be2f822487f0e748d7e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QTM2OjRDQkUxOkM2MEJEOjEyMTY0Rjo2QTYzNjIxNSIsInZpc2l0b3JfaWQiOiI2MDUyMjg4MDQyMDc3NzQxNTg5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacf951f12216d24ae390325797ea6c5e73f03549c0f7170b8ce488573f83f20ea3
hovercard-subject-tagpull_request:1014096348
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/github/catalyst/268/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/c535ef70a24608b3b82961a5cd651055ba1b604cb2549d9595573b1ffae5077b/github/catalyst/pull/268
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c535ef70a24608b3b82961a5cd651055ba1b604cb2549d9595573b1ffae5077b/github/catalyst/pull/268
og:image:altUpstream a lazyDefine function from github/github and add some tests.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamekoddsson
hostnamegithub.com
expected-hostnamegithub.com
None59e55daad7174ca59d63c6974d58276ccb5477442e550bebb3c035e1bef11c94
turbo-cache-controlno-cache
go-importgithub.com/github/catalyst git https://github.com/github/catalyst.git
octolytics-dimension-user_id9919
octolytics-dimension-user_logingithub
octolytics-dimension-repository_id240087376
octolytics-dimension-repository_nwogithub/catalyst
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id240087376
octolytics-dimension-repository_network_root_nwogithub/catalyst
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release71b1218de2f2ab29c4d5ce72568e68e2c56044c6
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/github/catalyst/pull/268#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcatalyst%2Fpull%2F268
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
Code QualityEnforce quality at mergehttps://github.com/features/code-quality
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcatalyst%2Fpull%2F268
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=github%2Fcatalyst
Reloadhttps://github.com/github/catalyst/pull/268
Reloadhttps://github.com/github/catalyst/pull/268
Reloadhttps://github.com/github/catalyst/pull/268
Please reload this pagehttps://github.com/github/catalyst/pull/268
github https://github.com/github
catalysthttps://github.com/github/catalyst
Notifications https://github.com/login?return_to=%2Fgithub%2Fcatalyst
Fork 57 https://github.com/login?return_to=%2Fgithub%2Fcatalyst
Star 1.4k https://github.com/login?return_to=%2Fgithub%2Fcatalyst
Code https://github.com/github/catalyst
Issues 18 https://github.com/github/catalyst/issues
Pull requests 4 https://github.com/github/catalyst/pulls
Discussions https://github.com/github/catalyst/discussions
Actions https://github.com/github/catalyst/actions
Models https://github.com/github/catalyst/models
Security and quality 0 https://github.com/github/catalyst/security
Insights https://github.com/github/catalyst/pulse
Code https://github.com/github/catalyst
Issues https://github.com/github/catalyst/issues
Pull requests https://github.com/github/catalyst/pulls
Discussions https://github.com/github/catalyst/discussions
Actions https://github.com/github/catalyst/actions
Models https://github.com/github/catalyst/models
Security and quality https://github.com/github/catalyst/security
Insights https://github.com/github/catalyst/pulse
keithamushttps://github.com/keithamus
mainhttps://github.com/github/catalyst/tree/main
lazy-definehttps://github.com/github/catalyst/tree/lazy-define
Conversationhttps://github.com/github/catalyst/pull/268
Findingshttps://github.com/github/catalyst/pull/268/findings
Commits21 (21)https://github.com/github/catalyst/pull/268/commits
Checkshttps://github.com/github/catalyst/pull/268/checks
Files changedhttps://github.com/github/catalyst/pull/268/files
lazyDefine componentshttps://github.com/github/catalyst/pull/268#top
keithamushttps://github.com/keithamus
mainhttps://github.com/github/catalyst/tree/main
lazy-definehttps://github.com/github/catalyst/tree/lazy-define
https://github.com/koddsson
koddssonhttps://github.com/koddsson
Aug 1, 2022https://github.com/github/catalyst/pull/268#issue-1324685277
Please reload this pagehttps://github.com/github/catalyst/pull/268
https://github.com/koddsson
koddssonhttps://github.com/koddsson
code ownerhttps://github.com/github/catalyst/blob/629ab224c823bec28d04d50b3a27f289f013c1ee/CODEOWNERS#L1
August 1, 2022 16:34https://github.com/github/catalyst/pull/268#event-7103155816
https://github.com/koddsson
koddssonhttps://github.com/koddsson
srt32https://github.com/srt32
August 1, 2022 16:34https://github.com/github/catalyst/pull/268#event-7103155855
https://github.com/koddsson
koddssonhttps://github.com/koddsson
Aug 2, 2022 https://github.com/github/catalyst/pull/268#pullrequestreview-1058491549
View reviewed changes https://github.com/github/catalyst/pull/268/files
src/lazy-define.tshttps://github.com/github/catalyst/pull/268/files#diff-682e034eabe365d6b2ab2a2c339313abae6b91401ebafb6b069898ac4a21239a
Please reload this pagehttps://github.com/github/catalyst/pull/268
src/lazy-define.tshttps://github.com/github/catalyst/pull/268/files#diff-682e034eabe365d6b2ab2a2c339313abae6b91401ebafb6b069898ac4a21239a
Please reload this pagehttps://github.com/github/catalyst/pull/268
src/lazy-define.tshttps://github.com/github/catalyst/pull/268/files#diff-682e034eabe365d6b2ab2a2c339313abae6b91401ebafb6b069898ac4a21239a
Please reload this pagehttps://github.com/github/catalyst/pull/268
test/lazy-define.tshttps://github.com/github/catalyst/pull/268/files#diff-040dba1512ac0df027c0959e7b081da3e8bdb61d7ec96be7d3b28e897f56a426
Please reload this pagehttps://github.com/github/catalyst/pull/268
test/lazy-define.tshttps://github.com/github/catalyst/pull/268/files#diff-040dba1512ac0df027c0959e7b081da3e8bdb61d7ec96be7d3b28e897f56a426
Please reload this pagehttps://github.com/github/catalyst/pull/268
https://github.com/keithamus
keithamushttps://github.com/keithamus
Aug 2, 2022 https://github.com/github/catalyst/pull/268#pullrequestreview-1058522566
View reviewed changes https://github.com/github/catalyst/pull/268/files
https://github.com/keithamus
keithamushttps://github.com/keithamus
Aug 2, 2022https://github.com/github/catalyst/pull/268#issuecomment-1202300685
Please reload this pagehttps://github.com/github/catalyst/pull/268
https://github.com/koddsson
koddssonhttps://github.com/koddsson
force-pushedhttps://github.com/github/catalyst/compare/cba6b6d93399ce788b6d2240016b5be9f12db575..4f9a49e08688d7c5f6356fcbb44776d16b5e7105
cba6b6dhttps://github.com/github/catalyst/commit/cba6b6d93399ce788b6d2240016b5be9f12db575
4f9a49ehttps://github.com/github/catalyst/commit/4f9a49e08688d7c5f6356fcbb44776d16b5e7105
Compare https://github.com/github/catalyst/compare/cba6b6d93399ce788b6d2240016b5be9f12db575..4f9a49e08688d7c5f6356fcbb44776d16b5e7105
August 4, 2022 09:55https://github.com/github/catalyst/pull/268#event-7126304515
koddssonhttps://github.com/koddsson
August 4, 2022 11:55https://github.com/github/catalyst/pull/268#commits-pushed-061a038
https://github.com/koddsson
https://github.com/keithamus
Copy lazy-define.ts from github/githubhttps://github.com/github/catalyst/pull/268/commits/061a038916898fb33543395e026609b37007caba
061a038https://github.com/github/catalyst/pull/268/commits/061a038916898fb33543395e026609b37007caba
https://github.com/koddsson
https://github.com/keithamus
Listen to readystatechange instead of DOMContentLoadedhttps://github.com/github/catalyst/pull/268/commits/926d61bacc21b290bf5c7222637ee1f97e795b07
926d61bhttps://github.com/github/catalyst/pull/268/commits/926d61bacc21b290bf5c7222637ee1f97e795b07
https://github.com/koddsson
https://github.com/keithamus
Add more event listeners for interaction checkhttps://github.com/github/catalyst/pull/268/commits/57148d0dfbe4787efc13e602ea59973e2e92f208
57148d0https://github.com/github/catalyst/pull/268/commits/57148d0dfbe4787efc13e602ea59973e2e92f208
https://github.com/koddsson
https://github.com/keithamus
Use abort controller to remove event handlershttps://github.com/github/catalyst/pull/268/commits/49b4cc0ccc5b747487ebceeca4a6b48d51ab81ab
49b4cc0https://github.com/github/catalyst/pull/268/commits/49b4cc0ccc5b747487ebceeca4a6b48d51ab81ab
https://github.com/koddsson
https://github.com/keithamus
Observe elements when whenSeen is calledhttps://github.com/github/catalyst/pull/268/commits/612cc18c09c2607a03cbe6fed5f8aad67880b12f
612cc18https://github.com/github/catalyst/pull/268/commits/612cc18c09c2607a03cbe6fed5f8aad67880b12f
https://github.com/koddsson
https://github.com/keithamus
Convert callback Array to a Sethttps://github.com/github/catalyst/pull/268/commits/065bde1a0b946d57de2a5db66dcc1020229ea84d
065bde1https://github.com/github/catalyst/pull/268/commits/065bde1a0b946d57de2a5db66dcc1020229ea84d
https://github.com/koddsson
https://github.com/keithamus
Pass in the element tag name to strategieshttps://github.com/github/catalyst/pull/268/commits/f6489c9be6d119d51462d9a60332c30e97a8efe6
f6489c9https://github.com/github/catalyst/pull/268/commits/f6489c9be6d119d51462d9a60332c30e97a8efe6
https://github.com/koddsson
https://github.com/keithamus
Add a visible strategyhttps://github.com/github/catalyst/pull/268/commits/2e858fb2a82cd84479ed9584bceed1cd5b577f44
2e858fbhttps://github.com/github/catalyst/pull/268/commits/2e858fb2a82cd84479ed9584bceed1cd5b577f44
https://github.com/koddsson
https://github.com/keithamus
Rename whenSeen to lazyDefinehttps://github.com/github/catalyst/pull/268/commits/d790e4b5cd9058d1ee4326fad278106579b69486
d790e4bhttps://github.com/github/catalyst/pull/268/commits/d790e4b5cd9058d1ee4326fad278106579b69486
https://github.com/koddsson
https://github.com/keithamus
Check actual object rather than stringhttps://github.com/github/catalyst/pull/268/commits/943c9293239e266ba75cbb6bdfce6aea82b2eddf
943c929https://github.com/github/catalyst/pull/268/commits/943c9293239e266ba75cbb6bdfce6aea82b2eddf
https://github.com/koddsson
https://github.com/keithamus
Add tests for addStrategyhttps://github.com/github/catalyst/pull/268/commits/ec912f202d4f94a9cc94bf93d343b63f1497fbdf
ec912f2https://github.com/github/catalyst/pull/268/commits/ec912f202d4f94a9cc94bf93d343b63f1497fbdf
https://github.com/koddsson
https://github.com/keithamus
Add some basic tests for lazyDefinehttps://github.com/github/catalyst/pull/268/commits/a0c45c462e931918aba404fdf8fafeeaf651b173
a0c45c4https://github.com/github/catalyst/pull/268/commits/a0c45c462e931918aba404fdf8fafeeaf651b173
https://github.com/koddsson
https://github.com/keithamus
Scan whole document on each lazyDefinehttps://github.com/github/catalyst/pull/268/commits/1b509ca594808d998de33e7a1b3e8a2bd08e24ad
1b509cahttps://github.com/github/catalyst/pull/268/commits/1b509ca594808d998de33e7a1b3e8a2bd08e24ad
https://github.com/koddsson
https://github.com/keithamus
prettierhttps://github.com/github/catalyst/pull/268/commits/d5400983abfe854063de179e253d6ebd1c995dee
d540098https://github.com/github/catalyst/pull/268/commits/d5400983abfe854063de179e253d6ebd1c995dee
https://github.com/koddsson
https://github.com/keithamus
Add test to make sure callbacks are only called oncehttps://github.com/github/catalyst/pull/268/commits/8e9da7d24e0781e1adf2cc92a6a0d222e6250775
8e9da7dhttps://github.com/github/catalyst/pull/268/commits/8e9da7d24e0781e1adf2cc92a6a0d222e6250775
https://github.com/koddsson
https://github.com/keithamus
Add tests for the different strategieshttps://github.com/github/catalyst/pull/268/commits/702fe87b000e126078d11dd800acc0ef2825b5c2
702fe87https://github.com/github/catalyst/pull/268/commits/702fe87b000e126078d11dd800acc0ef2825b5c2
https://github.com/koddsson
https://github.com/keithamus
Disable wrong eslint rulehttps://github.com/github/catalyst/pull/268/commits/df339849aecaccc3b23df949de140d87a673e2b1
df33984https://github.com/github/catalyst/pull/268/commits/df339849aecaccc3b23df949de140d87a673e2b1
https://github.com/koddsson
Remove addStrategy functionhttps://github.com/github/catalyst/pull/268/commits/d81a887a93ab1e45eb0e131c27dec82742acbe3d
d81a887https://github.com/github/catalyst/pull/268/commits/d81a887a93ab1e45eb0e131c27dec82742acbe3d
https://github.com/koddsson
Remove default document.body from function signaturehttps://github.com/github/catalyst/pull/268/commits/9fc890bc0dbdde92e9fe1678d04c9b798cb541af
9fc890bhttps://github.com/github/catalyst/pull/268/commits/9fc890bc0dbdde92e9fe1678d04c9b798cb541af
https://github.com/koddsson
https://github.com/keithamus
Export lazyDefine in indexhttps://github.com/github/catalyst/pull/268/commits/84621efac58aa085a2dd83764dc7b0cd282784a0
84621efhttps://github.com/github/catalyst/pull/268/commits/84621efac58aa085a2dd83764dc7b0cd282784a0
https://github.com/koddsson
https://github.com/keithamus
Add documentation for lazyDefinehttps://github.com/github/catalyst/pull/268/commits/f0e572e83c9138e82e15f5abe1e536b69dbb3998
f0e572ehttps://github.com/github/catalyst/pull/268/commits/f0e572e83c9138e82e15f5abe1e536b69dbb3998
https://github.com/koddsson
koddssonhttps://github.com/koddsson
force-pushedhttps://github.com/github/catalyst/compare/4f9a49e08688d7c5f6356fcbb44776d16b5e7105..f0e572e83c9138e82e15f5abe1e536b69dbb3998
4f9a49ehttps://github.com/github/catalyst/commit/4f9a49e08688d7c5f6356fcbb44776d16b5e7105
f0e572ehttps://github.com/github/catalyst/commit/f0e572e83c9138e82e15f5abe1e536b69dbb3998
Compare https://github.com/github/catalyst/compare/4f9a49e08688d7c5f6356fcbb44776d16b5e7105..f0e572e83c9138e82e15f5abe1e536b69dbb3998
August 4, 2022 09:56https://github.com/github/catalyst/pull/268#event-7126310056
https://github.com/apps/github-pages
github-pageshttps://github.com/apps/github-pages
had a problem deployinghttps://github.com/github/catalyst/runs/7669662527?check_suite_focus=true
August 4, 2022 09:57https://github.com/github/catalyst/pull/268#event-7126322732
https://github.com/keithamus
keithamushttps://github.com/keithamus
Aug 4, 2022 https://github.com/github/catalyst/pull/268#pullrequestreview-1061635580
View reviewed changes https://github.com/github/catalyst/pull/268/files/f0e572e83c9138e82e15f5abe1e536b69dbb3998
https://github.com/keithamus
keithamushttps://github.com/keithamus
e81d778https://github.com/github/catalyst/commit/e81d7789ba17240b22f376e34ff6626b4e0ed6db
Aug 4, 2022https://github.com/github/catalyst/pull/268#event-7126370672
https://github.com/keithamus
keithamushttps://github.com/keithamus
August 4, 2022 10:04https://github.com/github/catalyst/pull/268#event-7126370760
https://github.co/hiddenchars
https://github.com/github/catalyst/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithub%2Fcatalyst%2Fpull%2F268
https://github.com/srt32
srt32 https://github.com/srt32
https://github.com/keithamus
keithamus https://github.com/keithamus
https://github.com/github/catalyst/pull/268/files/f0e572e83c9138e82e15f5abe1e536b69dbb3998
Please reload this pagehttps://github.com/github/catalyst/pull/268
https://github.com/koddsson
https://github.com/keithamus
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.