This webpage is the official documentation of the OKX exchange, and I noticed that when scrolling down, the URL changes dynamically. If such a webpage is provided to Cursor’s official documentation setup, will Cursor be able to retrieve the content that loads after scrolling down?
I ask ChatGPT-4o,and get a response as follows:
Whether Cursor can retrieve content loaded after scrolling primarily depends on how it fetches webpage content:
Static Fetching Method
If Cursor only fetches the HTML returned when the page initially loads (i.e., it does not execute JavaScript), then it will only obtain the initial portion of the content. The content that is dynamically loaded through scrolling will not be included.Dynamic Rendering Method
If Cursor employs technology similar to a headless browser that can execute JavaScript and simulate user scrolling, it might be able to load and capture the additional content that appears after scrolling down.Therefore, if you supply such dynamically loaded official docs to Cursor’s documentation setup, you need to ensure that:
- The webpage content is fully loaded (for example, manually scrolling to the bottom of the page and waiting for all content to load), or
- Cursor’s fetching mechanism supports simulating scrolling and executing JavaScript to capture the dynamic portion.
In summary, by default, many documentation fetching tools only capture the statically loaded initial content, and dynamic content typically requires additional handling. If Cursor’s settings are not specifically adjusted for dynamic content, it may only retrieve the initial content and miss the parts loaded after scrolling.
So, in Cursor’s settings, when referencing official documentation, which method does it use? How can I make Cursor retrieve the entire docs from such a dynamically changing URL?