<script type="module" ...> tags to reduce round trips under HTTP/2 (#745)

This commit is contained in:
Forest Johnson 2021-02-21 20:09:04 -06:00 committed by GitHub
parent 0bfd9f8e1f
commit f6bdff32ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,6 +33,44 @@
<link href="./styles/chat.css" rel="stylesheet" />
<link href="./styles/user-content.css" rel="stylesheet" />
<link href="./styles/app.css" rel="stylesheet" />
<!-- The following script tags are not required for the app to run,
however they will make it load a lot faster (fewer round trips) when HTTP/2 is used.
If you wish to re-generate this list, run the following shell command
(assuming a linux or unix-ish system):
find webroot | grep -E '\.js$' | sed -E 's|webroot(.*)|<script type="module" src="\1"></script>|'
-->
<script type="module" src="/js/app.js"></script>
<script type="module" src="/js/app-standalone-chat.js"></script>
<script type="module" src="/js/app-video-only.js"></script>
<script type="module" src="/js/components/chat/chat-input.js"></script>
<script type="module" src="/js/components/chat/chat.js"></script>
<script type="module" src="/js/components/chat/chat-message-view.js"></script>
<script type="module" src="/js/components/chat/content-editable.js"></script>
<script type="module" src="/js/components/chat/message.js"></script>
<script type="module" src="/js/components/chat/username.js"></script>
<script type="module" src="/js/components/platform-logos-list.js"></script>
<script type="module" src="/js/components/player.js"></script>
<script type="module" src="/js/components/video-poster.js"></script>
<script type="module" src="/js/utils/chat.js"></script>
<script type="module" src="/js/utils/constants.js"></script>
<script type="module" src="/js/utils/helpers.js"></script>
<script type="module" src="/js/utils/platforms.js"></script>
<script type="module" src="/js/utils/user-colors.js"></script>
<script type="module" src="/js/utils/websocket.js"></script>
<script type="module" src="/js/web_modules/common/_commonjsHelpers-37fa8da4.js"></script>
<script type="module" src="/js/web_modules/common/core-d14f1e1c.js"></script>
<script type="module" src="/js/web_modules/common/core-fed3ccd8.js"></script>
<script type="module" src="/js/web_modules/htm.js"></script>
<script type="module" src="/js/web_modules/@joeattardi/emoji-button.js"></script>
<script type="module" src="/js/web_modules/@justinribeiro/lite-youtube.js"></script>
<script type="module" src="/js/web_modules/markjs/dist/mark.es6.min.js"></script>
<script type="module" src="/js/web_modules/preact.js"></script>
<script type="module" src="/js/web_modules/@videojs/http-streaming/dist/videojs-http-streaming.min.js"></script>
<script type="module" src="/js/web_modules/videojs/core.js"></script>
</head>
<body class="scrollbar-hidden bg-gray-300 text-gray-800">