Understanding the different strategies used by Waterfall-Fetch
Waterfall-Fetch employs multiple strategies to retrieve HTML content, ensuring optimal performance and reliability. This page explains the different strategies and how they work together.
Waterfall-Fetch uses two predefined strategy sets:
Optimized for cost-effectiveness and speed:
Designed for JavaScript-heavy websites:
The waterfall method starts with the fastest and most cost-effective strategy to fetch the HTML of your target URL. If the initial attempt fails, Waterfall-Fetch seamlessly transitions to more robust methods, ensuring you ultimately receive the HTML from the target URL.
You can customize the strategy set used by Waterfall-Fetch. Check out the Advanced Usage section to learn how to create and use custom strategy sets.
getHtml
function