E
E
Edward2016-12-22 11:30:37
Pug
Edward, 2016-12-22 11:30:37

How to set defer and async parameters for script in pug/jade?

Good day to all. Please advise with a question. If I prescribe script(defer, src='script.js'), then it displays in html <script defer="defer" src="script.js"></script>, how to do it right?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Ukolov, 2016-12-22
@alexey-m-ukolov

how to do it right?
Read documentation.
https://pugjs.org/language/attributes.html#boolean...
984019ede00a460ab6c44623af46e432.png

Z
zooks, 2016-12-22
@zooks

Specify doctype for HTML5:
doctype html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question