The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 802 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.1 (Linux)
File Line Function
/showthread.php 802 errorHandler->error

Current time: 12-07-2019, 10:33 PM Hello There, Guest! (LoginRegister)

Post Reply 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ServiceWorker in Chrome causing delays, serialized requests
11-15-2019, 11:19 PM
Post: #1
ServiceWorker in Chrome causing delays, serialized requests
Testing: with and without ServiceWorker gives very different results in Chrome.

Without SW all images are requested immediately and received in parallel.

On the second run, when ServiceWorker kicks in, "waiting" state appears all over the waterfall. Image requests are significantly delayed, and responses arrive one by one, instead of being streamed in parallel.

ServiceWorker in this case is intentionally the most basic one:

self.addEventListener('fetch', event => {
    return event.respondWith(fetch(event.request));

I'm seeing the delays only in Chrome. In Firefox runs with and without ServiceWorker are identical.

Is that some quirk of WebPageTest, e.g. related to simulation of slow connections? Can this be a Chrome bug?

Here's an example run:


Find all posts by this user
Quote this message in a reply
Post Reply 

Messages In This Thread
ServiceWorker in Chrome causing delays, serialized requests - Kornel - 11-15-2019 11:19 PM

Forum Jump:

User(s) browsing this thread: 1 Guest(s)