<script is="lazy-template"> (ready for review) #165
Conversation
@kand @daytonn @spra85 @mparent61 We're working on page speed and want to be able to ship html content without having the browser engine parse it. According to the spec, this would be the time to use a But browsers won't parse the contents of a enter: <script type="text/html"> Now, we want to customize this So we define a custom extension of the <script is="lazy-template" type="text/html"> There is another required attribute Page load loads when the window load-on="page-load" In view loads the content when the template comes into the viewport. load-on="in-view" |
Awesome, can't wait to try this out. |
this.addEventListener('enterviewport', this.handleEnterViewport); | ||
} | ||
|
||
tearDownLoadOnPageLoad () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to leave this here if it's a no-op?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
👍 |
@mparent61 If you link in bulbs-elements through your
docker-compose.yml
we'll be able to start testing out<script is="lazy-template">