Skip to content

Resolve "Specific Async Script Loading by using a Page Variable"

What does this MR do?

It makes it possible to set script loading on a specific page to defer. Simply set @page_defer_javascript to true and all scripts will get the defer="defer" attribute.

Why was this MR needed?

To boost performance already on specific pages. Later on we can reuse the javascript_tag overwrite exactly in the opposite way so all scripts are defer except specific ones.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #34904 (closed)

Edited by Tim Zallmann

Merge request reports

Loading