Option to limit the maximum number of prefetched requests
See original GitHub issueIt would be nice to limit the number of links that will be prefetched which can also default at a sane number.
Proposed API: options.limit
Would love to get your feedback on naming & default limit
Issue Analytics
- State:
- Created 5 years ago
- Reactions:5
- Comments:7
Top Results From Across the Web
What is the Prefetch Limit For? - ActiveMQ
Setting a relatively high value of prefetch leads to higher performance. Therefore the default values are typically greater than 1000 and much higher...
Read more >FAQ: How to Optimize the RabbitMQ Prefetch Count
The channel prefetch value defines the max number of unacknowledged deliveries that are permitted on a channel. Setting a limit on this ...
Read more >max-size argument renamed to max_size · Issue #300 - GitHub
I use prefetch with the --max-size argument. I just updated to 2.10.4 and found that the syntax changed to --max_size.
Read more >Consumer Prefetch - RabbitMQ
AMQP 0-9-1 specifies the basic.qos method to make it possible to limit the number of unacknowledged messages on a channel (or connection) when...
Read more >Link prefetching FAQ - HTTP - MDN Web Docs
Will Mozilla prefetch documents from a different host? ... Yes. There is no same-origin restriction for link prefetching. Limiting prefetching to ...
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 FreeTop 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
Top GitHub Comments
I like the simplicity of
limit
, but I don’t have a strong opinion on naming.maxConcurrentPrefetches
is another one.In retrospect, given the browser and server configuration will impact what “parallel” or “concurrent” mean, limit might make the most sense.
Hi everyone, just see the 1.0.1 release 🎉 and joining the conversation to give my opinion.
I am working with the team of @barbajs and we have a module called
@barba/prefetch
, inspired by quicklink, that prefetch in-viewport links of a web page: https://barba.js.org/docs/v2/user/prefetch.html.We already discussed about having a
limit
parameter in this module, but in most cases, we noticed that the viewport doesn’t really contain more than 5/10 “un-prefetched” links at a time. We wan’t to keep BarbaJS as simple as possible, so this feature is not implemented yet.From my point of view, if you decide to add this option, you should go with
limit
to keep the name simple. That make sense.Keep this lib moving forward! 😉