ElMassimo/iles

Support useHead `body: true`

harlan-zw opened this issue · 2 comments

Is your feature request related to a problem? Please describe.

@vueuse/head recently added support for embedding scripts using body: true to add the script to the end of the body. (commit)

When using this feature in iles, the scripts don't get rendered at all. I'm guessing this is because the app template render is missing the bodyTags variable.

Describe the solution you'd like

Support for the option.

Describe alternatives you've considered

...

Additional context

...

Hi Harlan!

Sounds good, adding support will require a simple change in the renderPage function.

I also need it. Firefox weirdly shows FOUC when there isn't any script at the end of body. Even a blank <script>/**/</script> at tagPosition: bodyClose fixes it.