# ブラウザ更新用 JS のプリロードを無効化する理由の1つ

**URL:** <https://meta.discourse.org/t/one-reason-to-disable-preload-for-browser-update-js/136693>\
**Category:** Development\
**Created:** [2019 年 12 月 20 日午後 4:48 UTC](https://meta.discourse.org/t/one-reason-to-disable-preload-for-browser-update-js/136693 "2019-12-20T16:48:21Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Gulshan\_Kumar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gulshan_kumar/32/119562_2.png) [@Gulshan\_Kumar](https://meta.discourse.org/u/Gulshan_Kumar)\
**Post date:** [2019 年 12 月 20 日午後 4:48 UTC](https://meta.discourse.org/t/one-reason-to-disable-preload-for-browser-update-js/136693/1 "2019-12-20T16:48:21Z")

</div>

こんにちは、

Discourse の HTML コードに、以下のような行が含まれていることに気づきました。

```plaintext
    <link rel='preload' href='/assets/browser-update-xyz24ff41586d6dcda055f0cfb41488724ba2e2d5271fef65ce5f480b46f9231d.js' as='script'/>
<script src='/assets/browser-update-xyz4ff41586d6dcda055f0cfb41488724ba2e2d5271fef65ce5f480b46f9231d.js'></script>

```

- これは何をするものですか？

- 古い Internet Explorer 以外のブラウザでも機能するのでしょうか？

詳しくは [https://caniuse.com/#search=preload](https://caniuse.com/#search=preload) をご覧ください。

**ブラウザがすでに古かった場合**

- preload をどのようにサポートするのでしょうか？
- ブラウザ更新メッセージを必要としない現代のブラウザにとって、preload の利点は少なくとも見当たりません。

これが Internet Explorer のみに関係するのか、それとも他のブラウザにも関わるのかはわかりません。IE の場合、JS を使用する代わりに条件付き HTML コメントを使用すれば、軽量になるかもしれません。

```plaintext
<!--[if lt IE 9]>
	<div>残念ながら、<a href="https://www.discourse.org/faq/#browser">お使いのブラウザはこのサイトに対応していません</a>。<a href="https://browsehappy.com">ブラウザをアップグレード</a>してください</div>
<![endif]-->

```

トップ 10 ウェブブラウザ  
1 Chrome 78 38.51%  
2 Safari 13 8.65%  
3 Chrome 77 5.89%  
4 Safari 12 4.25%  
5 Firefox 70 3.57%  
6 IE 18 3.17%  
7 IE 11 2.99%  
8 Samsung 10 2.44%  
9 Chrome 76 1.82%  
10 Chrome 74 1.44%  
出典: [W3Counter: Global Web Stats](https://www.w3counter.com/globalstats.php)

- まだ必要なのでしょうか？

よろしくお願いいたします、  
グルシャン

---

_[View the full topic](https://meta.discourse.org/t/one-reason-to-disable-preload-for-browser-update-js/136693)._
