Skip to content

Commit ebe5370

Browse files
author
Benjamin Pasero
committed
web - prevent waterfall loading
1 parent 5c48aaf commit ebe5370

3 files changed

Lines changed: 13 additions & 15 deletions

File tree

src/vs/code/browser/workbench/workbench.html

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,29 +4,32 @@
44
<head>
55
<meta charset="utf-8" />
66

7-
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
8-
97
<!-- Disable pinch zooming -->
108
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
119

12-
<meta http-equiv="Content-Security-Policy"
13-
content="default-src 'none'; img-src 'self' https: data: blob:; media-src 'none'; frame-src 'self' {{WEBVIEW_ENDPOINT}} https://*.vscode-webview-test.com; script-src 'self' https://az416426.vo.msecnd.net 'unsafe-eval' https:; style-src 'self' 'unsafe-inline'; connect-src 'self' ws: wss: https:; font-src 'self' blob:;">
10+
<!-- Content Security Policy -->
11+
<meta
12+
http-equiv="Content-Security-Policy"
13+
content="default-src 'none'; img-src 'self' https: data: blob:; media-src 'none'; frame-src 'self' {{WEBVIEW_ENDPOINT}} https://*.vscode-webview-test.com; script-src 'self' https://az416426.vo.msecnd.net 'unsafe-eval' https:; style-src 'self' 'unsafe-inline'; connect-src 'self' ws: wss: https:; font-src 'self' blob:;"
14+
>
1415

16+
<!-- Workbench Configuration -->
1517
<meta id="vscode-workbench-web-configuration" data-settings="{{WORKBENCH_WEB_CONGIGURATION}}">
1618

17-
<!-- Workaround to pass remote user data uri-->
19+
<!-- Workarounds/Hacks (remote user data uri, product configuration ) -->
1820
<meta id="vscode-remote-user-data-uri" data-settings="{{REMOTE_USER_DATA_URI}}">
19-
20-
<!-- Workaround to pass product configuration-->
2121
<meta id="vscode-remote-product-configuration" data-settings="{{PRODUCT_CONFIGURATION}}">
22+
23+
<!-- Workbench Icon/CSS -->
24+
<link rel="icon" href="/favicon.ico" type="image/x-icon" />
25+
<link data-name="vs/workbench/workbench.web.api" rel="stylesheet" href="./static/out/vs/workbench/workbench.web.api.css">
2226
</head>
2327

2428
<body aria-label="">
2529
</body>
2630

27-
<!-- Require our AMD loader -->
31+
<!-- Startup (do not modify order of script tags!) -->
2832
<script src="./static/out/vs/loader.js"></script>
29-
30-
<!-- Startup via workbench.js -->
33+
<script src="./static/out/vs/workbench/workbench.web.api.nls.js"></script>
3134
<script src="./static/out/vs/code/browser/workbench/workbench.js"></script>
3235
</html>
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,3 @@
44
*--------------------------------------------------------------------------------------------*/
55

66
/* NOTE: THIS FILE WILL BE OVERWRITTEN DURING BUILD TIME, DO NOT EDIT */
7-
8-
div.monaco.main.css {
9-
}

src/vs/workbench/workbench.web.main.nls.js renamed to src/vs/workbench/workbench.web.api.nls.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,3 @@
44
*--------------------------------------------------------------------------------------------*/
55

66
// NOTE: THIS FILE WILL BE OVERWRITTEN DURING BUILD TIME, DO NOT EDIT
7-
8-
define([], {});

0 commit comments

Comments
 (0)