{"version":"1.0","type":"rich","title":"legacy pattern by me for async fetching multiple urls","description":"This example demonstrates a sequential asynchronous fetching pattern for multiple URLs, showing how to collect and process text responses before triggering a final completion callback. The code uses the raw `XMLHttpRequest` API with an `onreadystatechange` handler to check `readyState` and `status`, then chains the next request by calling `asyncFetch` from within `fetchSuccess`. Each response is truncated to 256 characters and pushed into a global `result` array, with the sequence ending when the URL list is exhausted, as indicated by the `loadEnd` function. The data source is an array of same-origin page URLs, and the rendering is limited to console output of the accumulated results.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-0c533f06ac5ae6fea32f2589af31926d?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}