We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0eb7475 commit f2dd14eCopy full SHA for f2dd14e
1 file changed
server.js
@@ -38,6 +38,8 @@ const BLOCKED_PATTERNS = [
38
/doubleclick\.net/,
39
/\.woff2?(\?|$)/,
40
/\.ttf(\?|$)/,
41
+ /fonts\.googleapis\.com/,
42
+ /fonts\.gstatic\.com/,
43
/ws:\/\//,
44
/wss:\/\//,
45
/\/socket\.io\//,
@@ -123,12 +125,10 @@ server.use({
123
125
pendingRequests.forEach(({ url, time }) => {
124
126
console.log(` - ${((now - time) / 1000).toFixed(1)}s ${url}`);
127
});
128
+ } else {
129
+ clearInterval(interval);
130
}
131
}, 3000);
-
- const cleanup = () => clearInterval(interval);
- req.prerender.on('tabNavigated', cleanup);
- req.prerender.on('beforeSend', cleanup);
132
133
134
next();
0 commit comments