lasso-js/lasso

How to force JS dependancy into the head

alexjalex opened this issue · 1 comments

I'm trying to add TypeKit api into my app which requires the JS to be loaded in the head tag, not at end of body like most JS.

Is this not possible?

@alexjalex You can use lasso-slot to inject js inline wherever you want.
https://github.com/lasso-js/lasso#custom-attributes-for-script--style-tags.
You can check this for example
https://github.com/lasso-js/lasso-inline-slots