HTML Imports

"HTML Imports are a way to include and reuse HTML documents in other HTML documents."

Alternatives

Demo

Import HTML file with kitty

                  
<link rel="import" href="fileWithKittyImage.html">
                  
                
                  
// Grab content
var link = document.querySelector('link[rel="import"]');
var content = link.import;

// Grab relevant DOM from kitty page
var kitty = content.querySelector('.kitty');

// Append to our DOM
var examplePlaceHolder = document.querySelector('#examplePlaceHolder');
examplePlaceHolder.appendChild(kitty.cloneNode(true));
                  
                

Example: