【发布时间】:2023-03-29 00:33:01
【问题描述】:
我有一个包含在 HTML 模板中的 mako 文件,需要一些时间来加载。
我只想在页面的其余部分完全加载时加载它。
让我们考虑这个 html 模板片段:
...
<section>
<%include file="widget.html"/>
</section>
...
我希望<%include file... 行只有在页面的所有其余部分都加载后才能被浏览器读取。
有什么想法吗?
【问题讨论】:
标签: performance mako