question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Option to limit the maximum number of prefetched requests

See original GitHub issue

It 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:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:7

github_iconTop GitHub Comments

1reaction
addyosmanicommented, Dec 11, 2018

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.

0reactions
xavierfoucriercommented, Aug 18, 2019

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! 😉

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found