I have a SharePoint online site collection and I want to add Custom/3rd party JavaScript reference(Jquery, Knockout etc.,) to site collection and all sub sites without modifying master page.
There are few approaches(custom user action) discussed here UserCustomActions and here. I want to add the JS reference only in Root site collection and still reference them in all sub sites.
What is the best approach?