Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
Load the scripts with defer
A plain script in the head held up parsing until it had downloaded and
run, though cgit.js only acts once the document is ready. Deferred
scripts still run in the order given and before DOMContentLoaded, so a
site script after cgit.js can still call window.cgit.
Diffstat (limited to 'MANUAL.txt')
| -rw-r--r-- | MANUAL.txt | 2 |
1 file changed, 2 insertions, 0 deletions
@@ -315,6 +315,8 @@ js:: Url which specifies the javascript script document to include in all cgit pages. Default value: "/cgit.js". May be given multiple times, each script URL path is added in the head section of the document in turn. + Each is loaded with defer, so it runs once the page has been parsed, + still in the order given. Setting this to an empty string will disable generation of the link to this file in the head section. |
