Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is HTML Import still supported in Google Chrome?

According to http://blog.teamtreehouse.com/introduction-html-imports

To enable HTML imports in Chrome, go to chrome://flags and enable the Enable HTML Imports flag. Once you’re done, click the Relaunch Now button at the bottom of the screen to restart Chrome with support for HTML imports.

But I can't find it in latest version of Google Chrome flags

like image 666
user310291 Avatar asked Dec 22 '15 05:12

user310291


1 Answers

HTML Imports are implemented natively in Chrome, Opera and Android.

It is still a W3C Working Draft.

For other browsers, you can use:

  • the webcomponentsjs polyfill,
  • or directly the file html-imports.min.js from HTML Imports.

Update 2019

HTML Imports won't be supported natively after Chrome 73. You should then use another solutions:

  • the polyfill,
  • an alternate module loader,
  • JS import combined with template literals,
  • a direct download with fetch().

Update 2020

HTML Imports were definitvely removed.

like image 161
Supersharp Avatar answered Sep 29 '22 20:09

Supersharp