New answers tagged


While there is no reason it wouldn't work using the onload attribute of the <body> element, you could also consider using a twig {% js %} tag. The {% js %} tag allows you to register JS to be added in your page from anywhere in your template. By default it will be added at the end of the <body> element, which guarantees your HTML document is ...

Top 50 recent answers are included