Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Js_pipeline: true resulting position

Started by Muut Archive 11 years ago · 1 replies · 234 views
11 years ago

Hi,
I wonder if there is a way to get the compressed and minified javascript inserted at the bottom of the page (read: just before the </body> tag) instead of the header. Is ther eany configuration one could apply for that?

Thanks :)
Lukas

11 years ago

You can move the {{ asssets.js() }} call to the bottom of the theme if you wish. This is where the JS files get output. However, as long as your initializations are performed onload there is no great reason to do so.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1323 9 years ago
Archive · by Muut Archive, 9 years ago
2 919 9 years ago
Archive · by Muut Archive, 9 years ago
2 4048 9 years ago
Archive · by Muut Archive, 9 years ago
1 2923 9 years ago
Archive · by Muut Archive, 9 years ago
3 1106 9 years ago