Skip to content

Commit f2dd14e

Browse files
committed
Update blob logic
1 parent 0eb7475 commit f2dd14e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

server.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ const BLOCKED_PATTERNS = [
3838
/doubleclick\.net/,
3939
/\.woff2?(\?|$)/,
4040
/\.ttf(\?|$)/,
41+
/fonts\.googleapis\.com/,
42+
/fonts\.gstatic\.com/,
4143
/ws:\/\//,
4244
/wss:\/\//,
4345
/\/socket\.io\//,
@@ -123,12 +125,10 @@ server.use({
123125
pendingRequests.forEach(({ url, time }) => {
124126
console.log(` - ${((now - time) / 1000).toFixed(1)}s ${url}`);
125127
});
128+
} else {
129+
clearInterval(interval);
126130
}
127131
}, 3000);
128-
129-
const cleanup = () => clearInterval(interval);
130-
req.prerender.on('tabNavigated', cleanup);
131-
req.prerender.on('beforeSend', cleanup);
132132
}
133133

134134
next();

0 commit comments

Comments
 (0)