Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #37788
| Path | csiph.com!weretis.net!feeder6.news.weretis.net!feeder7.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail |
|---|---|
| From | Arno Welzel <usenet@arnowelzel.de> |
| Newsgroups | comp.lang.javascript |
| Subject | Re: Embed <script> at end of HTML vs. DOMContentLoaded handler |
| Date | Fri, 15 Nov 2019 17:29:36 +0100 |
| Lines | 28 |
| Message-ID | <h3823iFifuuU1@mid.individual.net> (permalink) |
| References | <c9de2141-a12e-4496-91e9-47809298f77b@googlegroups.com> <1ad170ed-9717-4be9-8fab-79a9d56766a5@googlegroups.com> <h35a03FolrU1@mid.individual.net> <909bda55-0dbf-4842-b2b9-d95c96b88f7f@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 7bit |
| X-Trace | individual.net EInSB6WLcxHNjolnspjghgstk7Gd5NQwr3rRDUrKioW0VLCiZS |
| Cancel-Lock | sha1:i/oPSWLuyPZPZuiF2ZHUj5qTxQM= |
| In-Reply-To | <909bda55-0dbf-4842-b2b9-d95c96b88f7f@googlegroups.com> |
| Xref | csiph.com comp.lang.javascript:37788 |
Show key headers only | View raw
Julio Di Egidio: [...] > Indeed, the "total time of rendering" strictly speaking is not even meaningful: It is. Because the browser will *always* need this time, regardless if there are scripts at the beginning or at the end of the page. The only thing which changes is, how fast the user will see "something". But this "something" may still not be the final page when scripts will start working with the DOM when it's ready. I have seen this often on news websites which start rendering very quickly but even if you think the page is fully loaded it will take some time before layout stops "jumping around". For example: Go to <https://m.tagesspiegel.de> and scroll down to the end then refresh the page to see the final layout getting built dynamically. Then repeat the same with disabled JavaScript - you will notice that most of the layout is missing. -- Arno Welzel https://arnowelzel.de
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Embed <script> at end of HTML vs. DOMContentLoaded handler luserdroog <luser.droog@gmail.com> - 2019-11-12 15:52 -0800
Re: Embed <script> at end of HTML vs. DOMContentLoaded handler Arno Welzel <usenet@arnowelzel.de> - 2019-11-14 16:25 +0100
Re: Embed <script> at end of HTML vs. DOMContentLoaded handler Julio Di Egidio <julio@diegidio.name> - 2019-11-14 08:34 -0800
Re: Embed <script> at end of HTML vs. DOMContentLoaded handler Arno Welzel <usenet@arnowelzel.de> - 2019-11-15 17:29 +0100
Re: Embed <script> at end of HTML vs. DOMContentLoaded handler John G Harris <niam@jghnorth.org.uk.invalid> - 2019-11-14 19:30 +0000
Re: Embed <script> at end of HTML vs. DOMContentLoaded handler Martin Leese <please@see.Web.for.e-mail.INVALID> - 2019-11-12 21:55 -0700
Re: Embed <script> at end of HTML vs. DOMContentLoaded handler Julio Di Egidio <julio@diegidio.name> - 2019-11-13 07:18 -0800
csiph-web