halo-sigs / plugin-highlightjs

集成 highlight.js 为文章提供代码块高亮渲染
https://halo.run/store/apps/app-sqpgf
GNU General Public License v3.0
8 stars 5 forks source link

perf: add defer attribute for script #5

Closed ruibaby closed 1 year ago

ruibaby commented 1 year ago

为 highlight.js 脚本添加 defer 属性,防止在加载过程中阻塞 HTML 的渲染而造成白屏。

/kind improvement

None 
f2c-ci-robot[bot] commented 1 year ago

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: guqing

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files: - ~~[OWNERS](https://github.com/halo-sigs/plugin-highlightjs/blob/main/OWNERS)~~ [guqing] Approvers can indicate their approval by writing `/approve` in a comment Approvers can cancel approval by writing `/approve cancel` in a comment