hexo-component-inferno 4.2.1 → 4.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,6 +23,9 @@ var _require = require('inferno'),
23
23
 
24
24
  /**
25
25
  * A simple article overview JSX component.
26
+ * <p>
27
+ * Its thumbnail is only loaded when it is about to be scrolled to: the component lists posts in
28
+ * the archives and in the sidebar, which is below the content on mobile.
26
29
  *
27
30
  * @name ArticleMedia
28
31
  * @example
@@ -63,7 +66,9 @@ module.exports = /*#__PURE__*/function (_Component) {
63
66
  });
64
67
  return (0, _inferno.createVNode)(1, "article", "media", [thumbnail ? (0, _inferno.createVNode)(1, "figure", "media-left", (0, _inferno.createVNode)(1, "a", "image", (0, _inferno.createVNode)(1, "img", null, null, 1, {
65
68
  "src": thumbnail,
66
- "alt": title
69
+ "alt": title,
70
+ "loading": "lazy",
71
+ "decoding": "async"
67
72
  }), 2, {
68
73
  "href": url
69
74
  }), 2) : null, (0, _inferno.createVNode)(1, "div", "media-content", [(0, _inferno.createVNode)(1, "p", "date", (0, _inferno.createVNode)(1, "time", null, date, 0, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-component-inferno",
3
- "version": "4.2.1",
3
+ "version": "4.2.2",
4
4
  "description": "A collection of Inferno.js layout components and utility scripts for Hexo",
5
5
  "main": "lib/index.js",
6
6
  "repository": "https://github.com/ppoffice/hexo-component-inferno",