# 如何在页面渲染完成后运行代码

**URL:** https://meta.discourse.org/t/how-to-run-code-after-page-has-rendered/358393
**Category:** Development
**Created:** [2025年三月21日 21:49 UTC](https://meta.discourse.org/t/how-to-run-code-after-page-has-rendered/358393 "2025-03-21T21:49:38Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [2025年三月21日 22:46 UTC](https://meta.discourse.org/t/how-to-run-code-after-page-has-rendered/358393/3 "2025-03-21T22:46:04Z")

</div>

> [@merefield](#):
>
> 什么阻止你 fork 这个组件并根据自己的喜好以不同的名称进行自定义？

主要是懒惰。当我开始的时候，它只是一个很小的 CSS，很可能是静态的，他们不需要维护 fork，但是，现在很明显不 fork 是愚蠢的。

谢谢。

---

_[View the full topic](https://meta.discourse.org/t/how-to-run-code-after-page-has-rendered/358393)._
