I have an existing header and footer navigation that I would like to apply to third-party applications and sites on various platforms.
Ideally I would like to instruct vendors to add one script tag in HEAD of the document that then uses javascript to do the following:
- Add stylesheets to document head
- Add script tags before the closing body tag (jquery and other libraries and a app.js)
- The app.js will then rely on jQuery to load navigation html after the opening body tag and other dom manipulation (adding classes, removing elements, etc.)
I after reviewing this discussion - is document write the best solution in the initial script tag given to a third party?
Thank you.