Forum Discussion
RyanStanford1
Qrew Captain
Great tutorial Dan! Quick question, is there a way to have the IOL variables to fire off an html code page instead of a javascript one?
_anomDiebolt_
7 years agoQrew Elite
The purpose of the IOL Technique is to load user supplied JavaScript (stored in an code page and typically named module.js) into the current page as soon as the page loads. There is no HTML code page involved.
If you are asking if there is a way to load HTML stored in a code page into the current page that is something that is called transclusion.
Wiki on Transclusion
In computer science, transclusion is the inclusion of part or all of an electronic document into one or more other documents by hypertext reference.
https://en.wikipedia.org/wiki/Transclusion
There is no native mechanism to transclude HTML into a page (Mozilla objected to supporting HTML Imports). See:
https://developer.mozilla.org/en-US/docs/Web/Web_Components/HTML_Imports
If you want to stuff some additional HTML into the page you have to use JavaScript.
If you are asking if there is a way to load HTML stored in a code page into the current page that is something that is called transclusion.
Wiki on Transclusion
In computer science, transclusion is the inclusion of part or all of an electronic document into one or more other documents by hypertext reference.
https://en.wikipedia.org/wiki/Transclusion
There is no native mechanism to transclude HTML into a page (Mozilla objected to supporting HTML Imports). See:
https://developer.mozilla.org/en-US/docs/Web/Web_Components/HTML_Imports
If you want to stuff some additional HTML into the page you have to use JavaScript.