UNPKG

bigpipe-util

Version:

This library currently implements small part of Facebook BigPipe so far, but the advantage is to efficiently insert/replace content and work with the DOM. It is also possible to easily call JavaScript modules from PHP.

10 lines (8 loc) 155 B
export default class ReloadPage { now() { window.location.reload(); } delay(delay) { setTimeout(this.now.bind(this), delay); } }