How to set a timeout for user ? #5092
-
Hi everyone, in some of my endpoint I'm loading some external .js 😢 extract of the HTML page rendered by flask/Jinja -> <!DOCTYPE html>
<html lang="en">
<head>
<title>A title</title>
<meta charset="utf-8">
<script src="https://something.com/JS/"></script>
</head> But if for any reason the Then the loading of the page is on hold until (I assume) the browser timeout trigger and the rest of the page continue to load. My problem is that meanwhile the server side worker is also on hold 😞 How could I set a timeout server side ? I'm using Flask <-> Gunicorn <-> Nginx. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
FYI I've used also <script src="https://something.com/JS/" type="module" async></script> and that seem to not block the worker, but anyway I'm still looking for a server side timeout :) |
Beta Was this translation helpful? Give feedback.
-
This has nothing to do with Flask/Werkzeug. Also, the request to load the page has already finished by the time JS/CSS are getting loaded. |
Beta Was this translation helpful? Give feedback.
This has nothing to do with Flask/Werkzeug. Also, the request to load the page has already finished by the time JS/CSS are getting loaded.