Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#35389 closed feature request (maybelater)

HTML Imports

Reported by: extendwings's profile extendwings Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Script Loader Keywords:
Focuses: Cc:

Description

Currently, WordPress supports enqueuing scripts (wp_enqueue_script()) and styles (wp_enqueue_style()).
I'd like to propose a new type of queue, HTML Imports (wp_enqueue_document() or something).

(HTML Imports is one of the important part of Web Components.)

Change History (4)

#1 @johnbillion
9 years ago

  • Component changed from Themes to Script Loader
  • Keywords 2nd-opinion added
  • Type changed from enhancement to feature request

#2 @ericlewis
9 years ago

  • Keywords close added; 2nd-opinion removed

It's early in the standards process to consider adding a top-level API function in WordPress for this, see HTML imports browser support.

This doesn't block someone from experimenting with HTML imports. You could drop the <link rel="import"> tag in via the wp_head hook.

#4 @ocean90
9 years ago

  • Keywords close removed
  • Milestone Awaiting Review deleted
  • Resolution set to maybelater
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.