This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ************************************************************************* | |
// Server-side hot reload check by Michael Kennedy (https://mkennedy.codes). | |
// Released under the MIT open source license, 2023. | |
// | |
// Usage: Include this file in your "application shell" layout template | |
// or directly into any page you'd like to check. | |
// | |
// Set the checkIntervalInMs time to the frequency you need. Usually 1 sec | |
// should be fine, but if a page is slow maybe increase the delay. | |
// |