Add loading/eager/lazy descriptions (#79)

* Add loading/eager/lazy descriptions

* add data to htmlTags and valueSets

---------

Co-authored-by: Martin Aeschlimann <martinae@microsoft.com>
This commit is contained in:
CP Clermont 2023-08-28 12:05:28 -04:00 коммит произвёл GitHub
Родитель 6701b96a92
Коммит 2717840603
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 32 добавлений и 8 удалений

Просмотреть файл

@ -1545,7 +1545,11 @@
},
{
"name": "loading",
"valueSet": "loading"
"valueSet": "loading",
"description": {
"kind": "markdown",
"value": "Indicates how the browser should load the image."
}
},
{
"name": "referrerpolicy",
@ -6161,10 +6165,18 @@
"name": "loading",
"values": [
{
"name": "eager"
"name": "eager",
"description": {
"kind": "markdown",
"value": "Loads the image immediately, regardless of whether or not the image is currently within the visible viewport (this is the default value)."
}
},
{
"name": "lazy"
"name": "lazy",
"description": {
"kind": "markdown",
"value": "Defers loading the image until it reaches a calculated distance from the viewport, as defined by the browser. The intent is to avoid the network and storage bandwidth needed to handle the image until it's reasonably certain that it will be needed. This generally improves the performance of the content in most typical use cases."
}
}
]
},

Просмотреть файл

@ -537,7 +537,11 @@
},
{
"name": "loading",
"valueSet": "loading"
"valueSet": "loading",
"description": {
"kind": "markdown",
"value": "Indicates how the browser should load the image."
}
},
{
"name": "referrerpolicy",
@ -1413,4 +1417,4 @@
"description": "The menu element represents an unordered list of interactive items.",
"attributes": []
}
]
]

Просмотреть файл

@ -1225,10 +1225,18 @@
"name": "loading",
"values": [
{
"name": "eager"
"name": "eager",
"description": {
"kind": "markdown",
"value": "Loads the image immediately, regardless of whether or not the image is currently within the visible viewport (this is the default value)."
}
},
{
"name": "lazy"
"name": "lazy",
"description": {
"kind": "markdown",
"value": "Defers loading the image until it reaches a calculated distance from the viewport, as defined by the browser. The intent is to avoid the network and storage bandwidth needed to handle the image until it's reasonably certain that it will be needed. This generally improves the performance of the content in most typical use cases."
}
}
]
},
@ -1261,4 +1269,4 @@
}
]
}
]
]