Skip to content

jsForAPI + jQuery = TTFB 500 ms #18

Description

@denisshevchenko

Hi!

I use jsForAPI for jQuery-based AJAX call:

apiAJAXCall :: Text
apiAJAXCall = jsForAPI api' jquery

where api' is an API from one single endpoint. After that I embed this text into <script>-tag in the index page (it's important detail, see below).

It works perfectly, but I see that the first request is too slow: TTFB is ~500 ms (on localhost!). Important: it's not AJAX-request for this endpoint, it's a request to index page! Such a big delay occurs only for the first request to the index page (after app reload), all other requests are very fast. How can I fix it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions