<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>SetInterval on 技术博客 - 有条工具</title><link>/blog/tags/setinterval/</link><description>Recent content in SetInterval on 技术博客 - 有条工具</description><generator>Hugo -- 0.147.7</generator><language>zh-cn</language><copyright>2024-2025 有条工具技术博客</copyright><lastBuildDate>Fri, 04 Dec 2026 08:40:00 +0800</lastBuildDate><atom:link href="/blog/tags/setinterval/feed.xml" rel="self" type="application/rss+xml"/><item><title>浏览器不许你准时：网页闹钟与定时器节流的对抗</title><link>/blog/articles/browser-timer-throttling-alarm/</link><pubDate>Fri, 04 Dec 2026 08:40:00 +0800</pubDate><guid>/blog/articles/browser-timer-throttling-alarm/</guid><description>「每秒检查一次是否到点」听起来是最简单不过的闹钟实现，但浏览器的后台标签页会把 setInterval 降到每分钟一次甚至冻结——整分时刻会在两次扫描之间被跳过。这篇拆站内在线闹钟的三层防御：跨分钟扫描、真实时钟做基准、可见性事件补扫，以及为什么最后要在页面上写一句「重要事项请用系统闹钟」。</description></item></channel></rss>