Note that there are some explanatory texts on larger screens.

plurals
  1. POApp Engine taking Far Longer (> 1 sec) to serve static JS than static CSS
    primarykey
    data
    text
    <p>(Question edited b/c I have realized it involves file type)</p> <p>This file is 20kb. It is consistently taking > 1 second to serve.</p> <p><code>http://www.adrenalinemobility.com/js/ss-symbolicons.js</code></p> <p>Here is the <em>same file</em> with .css as it's extension:</p> <p><code>http://www.adrenalinemobility.com/js/ss-symbolicons.css</code></p> <p>It serves almost 1 whole second faster.</p> <p>Here is my app.yaml:</p> <pre><code>application: adrenaline-website version: 1 api_version: 1 runtime: python27 threadsafe: true libraries: - name: jinja2 version: latest handlers: - url: /favicon\.ico static_files: assets/favicon.ico upload: assets/favicon\.ico - url: /css static_dir: assets/css - url: /img static_dir: assets/img - url: /js static_dir: assets/js - url: /.* script: web.APP </code></pre> <p>I've also tried this <code>static_files</code> line (before the /js handler), and it was slow too:</p> <pre><code>- url: /js/ss-symbolicons.js static_files: assets/js/ss-symbolicons.js upload: assets/js/ss-symbolicons.js </code></pre> <p>Ways I have observed this:</p> <ul> <li>Chrome, Firefox (both on Linux) - from a DSL connection in Silicon Valley</li> <li>wget, curl, etc from that machine.</li> <li>Remotely wget and curl from a high-speed server at the University of Illinois</li> <li>Remote web testing services like webpagetest (see below):</li> </ul> <p>Here's a webpagetest waterfall graph that illustrates this problem - notice the one file has a huge TTFB: <a href="http://www.webpagetest.org/result/131101_ZQ_ZGQ/1/details/" rel="nofollow noreferrer">http://www.webpagetest.org/result/131101_ZQ_ZGQ/1/details/</a></p> <p>If i manually set the mime_type to <code>text</code>, then it goes fast. <code>application/javascript</code>, <code>application/x-javascript</code>, <code>text/javascript</code> are all slow. Currently those files are serving without manually specified mime-type if you wish to test.</p> <p>Some more info, as noticed by jchu:</p> <p>The slow version serves with: <code>Content-Length: 19973</code> and the fast version serves with: <code>Transfer-Encoding: chunked</code></p> <p>Still more details:</p> <p>I usually get server <code>74.125.28.121</code>. Someone on reddit got server <code>173.194.71.121</code> and it seems to have even serving speeds between them. So maybe it's server/location dependent?</p> <p><a href="https://stackoverflow.com/questions/19828450/browser-reports-a-really-slow-request-but-gae-shows-it-took-12ms">Another post about this issue</a></p> <p><a href="http://pastebin.com/raw.php?i=Je9nancP" rel="nofollow noreferrer">Here is a pastebin with full curl logs of requests for both files</a></p> <p><a href="http://pastebin.com/raw.php?i=Bh0TwHix" rel="nofollow noreferrer">Here is another pastebin with just the timing information from ten requests on each file in a tight loop</a></p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload