How to force JS dependancy into the head
alexjalex opened this issue · 1 comments
alexjalex commented
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?
pajaydev commented
@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