You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
Hi!
I use
jsForAPI
for jQuery-based AJAX call: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?The text was updated successfully, but these errors were encountered: