Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The following table lists the locations available for styles and scripts.

Type

Location

Description

Style

header

Inside the XHTML <header>


body-top

Immediately after the XHTML <body> starts

Script

header

Inside the XHTML <header>


body-top

Immediately after the XHTML <body> starts


body-bottom

Just before the XHTML <body> ends


async

Script is loaded asynchronously after the DOM is ready

 
Choose the location according to your needs. For example, place scripts that are not needed until the web page

...

are complete either at the end of the page or load it asynchronously.