Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #58870, comment 4


Ignore:
Timestamp:
07/21/2023 11:46:41 AM (20 months ago)
Author:
sergiomdgomes
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #58870, comment 4

    initial v1  
    77So let's look at our options here. The first axis of choice is whether the script should live in the `<head>` or at the end of the `<body>` (the footer, in WP terms).
    88
    9 To me, it seems that if this is an unimportant script that we don't mind executing late, it should live in the footer. This means it won't start fetching as early; even if it would do so at a lower priority, it could still start and compete for some bandwidth (in Chrome, low priority items will use less bandwidth but can still start before higher priority items are finished, and thus delay them somewhat in constrained bandwidth situations).
     9To me, it seems that if this is an unimportant script that we don't mind executing late, it should live in the footer. This means it won't start fetching as early; even if it would do so at a lower priority, it could still start and compete for some bandwidth (in Chrome, low priority items will use less bandwidth but can still start before all higher priority items are finished, and thus delay them somewhat in constrained bandwidth situations).
    1010
    1111As such, it seems there's no obvious reason to include it in the head, but please correct me if I'm missing something.