Control over Requests to Server
See original GitHub issueIn order not to overwhelm the server can there be parameters specified to control requests to the server by child elements (this can be also implemented at the page level to make it simpler supporting child elements is too complicated):
- number of parallels requests
- the delay between requests in a thread (this will be very small)
- delay as an absolute number
- delay as an uniformly distributed random number within a range (prevent all requests from firing nearly the same time)
- alternate parameters after error code (to stop overwhelming the server)
- ability to get parameters periodically from the server as a REST call (to stop overwhelming the server)
The trigger might need to be changed where the request is ques when triggered not actually making the request. If there is no delay and unlimited parallel request any request which is queued will be immediate.
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Access-Control-Request-Method - HTTP - MDN Web Docs
The Access-Control-Request-Method request header is used by browsers when issuing a preflight request, to let the server know which HTTP method ...
Read more >How to Reduce Your Website's HTTP Requests - HubSpot Blog
When a user visits a page on your website, your server heeds this request and returns the files contained on that page to...
Read more >Http Control
The Http control supports two types of request methods for data transfer, namely Get and Post. By using the Get mode, you can...
Read more >Preventing server overload: limit requests being processed ...
The solution is to limit the maximum number of concurrent requests, so some fraction of requests fail, but the others are processed. The ......
Read more >Prevent unnecessary network requests with the HTTP Cache
Response headers: configure your web server # · Cache-Control . The server can return a Cache-Control directive to specify how, and for how...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

htmx has events for before and after hooks:
https://htmx.org/events/
As of right now, my long term vision is that hyperscript will fill this need. But I won’t get back to hyperscript until the Fall unfortunately. 😕
yes, events are the way to handle this
if there is a need for declarative implementations, that should be first does as an extension to get firmed up and then we can consider moving it into core