[wp-trac] [WordPress Trac] #44427: Introduce lazy-loading API for media and other elements
WordPress Trac
noreply at wordpress.org
Tue Mar 31 10:26:25 UTC 2020
#44427: Introduce lazy-loading API for media and other elements
-------------------------------------------------+-------------------------
Reporter: mor10 | Owner: flixos90
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 5.5
Component: Media | Version: 5.3.2
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests 2nd- | Focuses:
opinion early needs-testing | performance
-------------------------------------------------+-------------------------
Changes (by narwen):
* version: => 5.3.2
* type: feature request => defect (bug)
Comment:
Plugin broke json inside post.
In my case I got:
{{{
[raw]
<script>jQuery(function($) {
$('#quiz').quiz({
…
q: "Some text <img src='picture.jpg' width='500' height='302'
class='aligncenter size-full' />",
…
</script>
[/raw]
}}}
So when adding loading="lazy" code is broken due to double-quotes. Maybe
it possible to add some exeption option.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/44427#comment:100>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list