CARVIEW |
Select Language
HTTP/2 200
date: Mon, 28 Jul 2025 17:48:36 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/ipfs/service-worker-gateway.git
etag: W/"20a630290eb0d315ab7f7021c467aa0a"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=%2B7bivmJm2oFXvd2G34ozBPVZu%2Bh4REPffPj5mT9of0ZnM%2FQIJwLZ8nXHCqm2e0WqHlNGHVY9KytP1VTAjbZy1w3vE%2BeFvMaj31Qmk4LpW0eKzUMOG2OSTzWBCvsUYS7OxWtWwvBH8vqnPwkedsBjPZpkZw7JdKTJh33nNSZNws%2FV1O54FP6wXpgTgeFt8%2FmFHFXDgIMRNnoWF4CrwVb%2Fyc%2BdrfPM7yuh5r3QDvxl4qA3p%2BMrAZxW58PZNMSjLqdYQ47Ft1OkhMhGiqeS8e8jHQ%3D%3D--v3xhUG7yIQtsjclZ--5HPLiS90C6VzjzTF8nxL8Q%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.602986817.1753724915; Path=/; Domain=github.com; Expires=Tue, 28 Jul 2026 17:48:35 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Tue, 28 Jul 2026 17:48:35 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: CD46:1E9437:97B44:B4D52:6887B7F3
fix: do not import css or react JS unless needed (#773) · ipfs/service-worker-gateway@78d4d45 · GitHub
Copy file name to clipboard
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit 78d4d45
authored
fix: do not import css or react JS unless needed (#773)
* feat: do not import css unless needed
* chore: fix lint and tests
* feat: dont download JS for UI unless needed
* chore: lint and build working
* chore: remove old test code
* chore: undo unnecessary tsconfig.json changes1 parent 343a26e commit 78d4d45Copy full SHA for 78d4d45
File tree
Expand file treeCollapse file tree
3 files changed
+47
-6
lines changedFilter options
- src/lib
- test
Expand file treeCollapse file tree
3 files changed
+47
-6
lines changed+27-4Lines changed: 27 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
74 | 74 |
| |
75 | 75 |
| |
76 | 76 |
| |
77 |
| - | |
| 77 | + | |
78 | 78 |
| |
79 | 79 |
| |
80 | 80 |
| |
| |||
96 | 96 |
| |
97 | 97 |
| |
98 | 98 |
| |
| 99 | + | |
99 | 100 |
| |
100 |
| - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
101 | 106 |
| |
102 | 107 |
| |
103 | 108 |
| |
| |||
184 | 189 |
| |
185 | 190 |
| |
186 | 191 |
| |
| 192 | + | |
| 193 | + | |
187 | 194 |
| |
188 | 195 |
| |
189 | 196 |
| |
190 | 197 |
| |
191 | 198 |
| |
192 | 199 |
| |
193 |
| - | |
| 200 | + | |
194 | 201 |
| |
195 | 202 |
| |
196 | 203 |
| |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
197 | 220 |
| |
198 | 221 |
| |
199 | 222 |
| |
| |||
219 | 242 |
| |
220 | 243 |
| |
221 | 244 |
| |
222 |
| - | |
| 245 | + | |
223 | 246 |
| |
224 | 247 |
| |
225 | 248 |
| |
|
src/lib/css-injector.ts
Copy file name to clipboard+19Lines changed: 19 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + |
+1-2Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
46 | 46 |
| |
47 | 47 |
| |
48 | 48 |
| |
49 |
| - | |
50 | 49 |
| |
51 | 50 |
| |
52 | 51 |
| |
53 | 52 |
| |
54 |
| - | |
| 53 | + | |
55 | 54 |
| |
56 | 55 |
| |
57 | 56 |
| |
|
You can’t perform that action at this time.
0 commit comments