working with html
<link rel="stylesheet" type="text/css" href="mystyle.css" >
<head> <link rel="import" href="/path/to/imports/stuff.html"> </head>
does not work.
stuff.html is stuck in there as
html as part of
head, and for all practicable purposes inaccessible.
In other words, a
template defined instuff.html
cannot be found usingdocument.querySelector()`, and is therefore unavailable to the script.
fwiw, I don't really understand any advantages of
import the way it works now - for it to be any good it needs to strip off (rather than adding) all the outer html before it appends the contents to
head - not its current action.