demo/html-template-demo/scripts.js
function loadHTML(url, id) {
  req = new XMLHttpRequest();
  req.open('GET', url);
  req.send();
  req.onload = () => {
    $id(id).innerHTML = req.responseText;
  };
}
function loadHTML(url, id) {
  req = new XMLHttpRequest();
  req.open('GET', url);
  req.send();
  req.onload = () => {
    $id(id).innerHTML = req.responseText;
  };
}
function loadHTML ( url , id ) { req = new XMLHttpRequest ( ) ; req . open ( 'GET' , url ) ; req . send ( ) ; req . onload = ( ) => { $id ( id ) . innerHTML = req . responseText ; } ; }
asyncrhonously fetch the html template partial from the file directory, then set its contents to the html of the parent element
asyncrhonously fetch the html template partial from the file directory then set its contents to the html of the parent element