0
像其他許多人一樣,在我之前淘汰開發者,我遇到了一個「slow running script」 warning in IE。KO:「Throttle」擴展器是否降低了PausableCompability的有用性?
在分析我的客戶端腳本之前,我想看看其他人如何解決類似問題。 [順便說一句,這裏是the best Knockout profiling advice我發現]
- @RP尼邁耶建議PauseableComputeds在這些情況下非常有用。
- 他是正確的。事實上,PausableComputed 是在這些情況下很有用。我在我的代碼中實現了PauseableComputed,並解決了我的問題。
- 但之後,我通過讀this answer發現了'throttle' extender。
這裏是我的問題的兩個部分:
- 是
throttle
擴展引入到解決PauseableComputeds試圖解決同樣的問題? - 都是同樣好的構造來解決IE中的「慢速運行腳本」警告?