The Tool Desk
Outbyte Driver Updater FREEFix the driver behind crashes, sound loss and screen glitchesFind Drivers →Outbyte PC Repair FREERepair Windows errors before they cause bigger problemsFix Now →To capture lazy-loaded images with Puppeteer, scroll the page programmatically in small increments, pause to trigger image loading, wait for image requests to settle, and then take a full-page screenshot. A single navigation wait or full-page capture may miss images that have not yet been requested.
Why lazy-loaded images are missing from screenshots
Many pages defer loading images until the image or its container approaches the viewport. A screenshot taken just after navigation can therefore include empty spaces or placeholders lower down the document: those images have not necessarily been requested yet. The reliable sequence is to trigger loading by traversing the page, wait for image readiness, and only then capture.
As an Amazon Associate I earn from qualifying purchases.
Puppeteer’s Page.evaluate() runs JavaScript in the page context and can await an asynchronous function. That makes it suitable for programmatic scrolling without manually operating the browser.
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Fix the driver behind crashes, sound loss and screen glitches3Clear out junk files and repair common Windows errorsCapture the page after triggering lazy loading
The following example assumes you have already created page and completed navigation. It scrolls by 80% of the viewport height, pauses after each move, waits for image load or error events, and saves a full-page PNG.
#1 Best Overall
- FULL HD IPS DISPLAY - Enjoy vibrant, crystal-clear images with 178-degree wide-viewing angles
- AMD RYZEN 3 30 PROCESSOR - Everyday performance you can count on; Multitask, stream, game casually, and edit photos smoothly with responsive power and vibrant HDR visuals
- ENJOY UP TO 14 HOURS AND 15 MINUTES OF BATTERY LIFE - HP Fast Charge restores battery from 0 to 50% in approximately 45 minutes
- AMD RADEON 610M GRAPHICS - Experience smooth entertainment; Built for streaming and multitasking, enjoy realistic visuals and efficient performance for work and play
- STORAGE AND MEMORY - 512 GB PCIe NVMe M.2 SSD offers fast speed and efficient storage; and 8 GB LPDDR5 RAM memory boosts performance with higher bandwidth
await page.evaluate(async () => {
const step = Math.max(1, Math.floor(window.innerHeight * 0.8));
const pause = ms => new Promise(resolve => setTimeout(resolve, ms));
for (let y = 0; y < document.documentElement.scrollHeight; y += step) {
window.scrollTo(0, y);
await pause(150);
}
window.scrollTo(0, document.documentElement.scrollHeight);
await pause(300);
});
await page.evaluate(async () => {
const images = Array.from(document.images);
await Promise.all(images.map(img => {
if (img.complete) return Promise.resolve();
return new Promise(resolve => {
img.addEventListener('load', resolve, { once: true });
img.addEventListener('error', resolve, { once: true });
});
}));
});
await page.screenshot({ path: 'page.png', fullPage: true });
The traversal handles common viewport-triggered loading, and the image check waits until each image is either loaded or has errored. An error counts as settled so one failed resource does not leave the script waiting forever. The example is a starting pattern, not a guarantee for every site: production code should impose an overall timeout, report failed images, and account for pages that grow as more content appears.
Require successful image loads when appropriate
The example waits for load or error, which is useful for ensuring the wait completes. If every expected image must have loaded successfully, inspect img.naturalWidth > 0 after the wait and report images that fail that check. Some pages legitimately contain broken or blocked images, so treat failures according to your capture requirements rather than assuming every image request will succeed.
Rank #2
- Intel Celeron N4120: 4 Cores & Threads, 1.1GHz Base Clock, Up to 2.6GHz Boost Clock, 4MB Cache, Intel UHD Graphics 600. The perfect combination of performance, power consumption, and value helps your device handle multitasking smoothly and reliably with four processing cores to divide up the work.
Handle pages whose height changes
The loop reads document.documentElement.scrollHeight as it runs, so it can accommodate some pages that grow during traversal. It can still miss content added after the loop has passed the point where that content appears. For those pages, repeat the traversal until the height stops changing or a time/iteration limit is reached, then run the image readiness check. A hard limit prevents an endlessly expanding feed from keeping the job alive indefinitely.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Choose the right capture and wait behavior
Full page versus one element
For the whole document, Page.screenshot({ fullPage: true }) is the straightforward capture option. For one known target, ElementHandle.screenshot() scrolls that element into view before capturing it. That convenience does not trigger every offscreen image across a long page. ElementHandle.scrollIntoView() is another option when you need to bring a specific element into view.
Rank #3
- Stunning 15.6" FHD IPS Display: Experience crisp 1920x1080 resolution on this 15.6 inch laptop with an IPS panel that delivers wide viewing angles and vivid colors. The narrow-bezel design maximizes screen real estate for comfortable viewing on this Win 11 laptop, whether you're studying or working.
- Celeron J4105 Processor & 256GB SSD: Powered by a reliable Celeron J4105 processor paired with 12GB DDR4 memory and a fast 256GB M.2 SSD. This laptop computer supports SSD expansion up to 2TB and TF card expansion up to 1TB, so your storage grows with your needs. Delivers smooth multitasking for daily productivity.
- AI-Powered Win 11 Laptop: Built-in AI features enhance your productivity with smart assistance for writing, summarizing, and task management. Pre-installed with Win 11 and includes Office 365 subscription. This student laptop is backed by 1-year warranty and 24/7 customer support.
- All-Day 7000mAh Battery & 180° Hinge: The high-capacity 7000mAh battery keeps this laptop powered through long classes or meetings. The 180-degree lay-flat hinge lets you share your screen effortlessly during presentations. This durable laptop computer adapts to your dynamic workflow.
- Versatile Connectivity Hub: Equipped with USB 3.2, Type-C, Mini HDMI, and 3.5mm audio jack to connect all your peripherals. Stay online anywhere with high-speed 5G WiFi and Bluetooth 4.2. This college laptop keeps you connected at home, in the library, or on the go.
Network idle is supplementary, not proof
Page.waitForNetworkIdle() waits for network inactivity; its idle interval is a settling condition, not evidence that the page requested every lazy resource. Trigger loading first, then use image-specific checks. Network idle may be an additional wait when it suits the page, but it should not replace traversal or readiness checks.
During navigation, Puppeteer’s networkidle0 and networkidle2 lifecycle values refer to zero or two concurrent connections, respectively, sustained for 500 ms. See PuppeteerLifeCycleEvent. These describe network state during navigation; they are not a site-independent test that lazy images are ready.
Rank #4
- Efficient Performance for Everyday Computing: Powered by Intel N150 processor with up to 3.6 GHz Intel Turbo Boost Technology, 6 MB L3 cache, 4 cores, and 4 threads, this HP laptop delivers responsive performance for web browsing, streaming, document editing, and multitasking. Paired with 4GB LPDDR5 RAM and 128GB UFS storage, it handles daily tasks smoothly. Includes 1-year Microsoft 365 Personal subscription for Word, Excel, PowerPoint, and cloud storage to maximize your productivity.
- 14-Inch HD Micro-Edge Display:Enjoy clear visuals on the 14-inch HD (1366 x 768) anti-glare screen with 250-nit brightness and 62.5% sRGB coverage. The micro-edge bezel delivers a 79% screen-to-body ratio in a compact design. An HP True Vision 720p HD camera with noise reduction and dual-array microphones supports clear video calls, remote work, and online learning.
- Modern Connectivity and Wireless Technology: Stay connected with Wi-Fi 6 (2x2) for faster wireless speeds and Bluetooth 5.4 for seamless pairing with accessories. Versatile port selection includes 1 USB Type-C 10Gbps with DisplayPort 1.2 for external displays, 2 USB Type-A 5Gbps ports for peripherals, 1 HDMI 1.4b port, 1 headphone/microphone combo jack, and 1 multi-format SD media card reader. Connect monitors, transfer files quickly, and expand your workspace with ease.
- All-Day Battery Life and Portable Design: Enjoy up to 11 hours of video playback, 7.5 hours of mixed usage, or 7.5 hours of wireless streaming on a single charge, perfect for students and professionals on the go. Weighing just 3.24 lb and measuring 12.76" x 8.86" x 0.71", this lightweight laptop fits easily in backpacks and bags. The stylish willow green top cover with matte finish and natural silver keyboard deck with vertical brushing pattern offer a modern, professional look.
- AI-Enhanced Productivity: Access Microsoft Copilot instantly with the dedicated Copilot key for faster assistance. AI Noise Reduction filters background sounds and improves voice clarity during calls. Dual speakers provide clear audio, while the full-size natural silver keyboard and HP Imagepad support comfortable typing and navigation.
Use targeted interactions for known content
Puppeteer’s interaction guide recommends locators for interactions and describes automatic checks such as viewport, visibility, enabled state, and stable bounding boxes for relevant actions. For a known image or component, targeted element operations can be clearer than sweeping the entire page. For broad coverage of offscreen images, programmatic traversal followed by a full-page capture is the more suitable pattern.
Free tools Windows power users keep installed
One-click scans. No signup required.
Timeouts, reliability, and capture cost
The example has fixed pauses but no overall deadline. Real pages can have slow or permanently stalled resources, and a page can keep adding content. Wrap the operation in an application-level timeout, cap traversal steps, and record image URLs that have naturalWidth === 0 after settling. This lets your capture job finish with useful diagnostics instead of hanging or silently treating missing images as successful.
Best Value
- 【Expansive Display】The 14 Non-touch display offers clear, and anti-glare coating, perfect for both work and entertainment.
- Designed for mobility with a slim 0.71-inch profile and lightweight, making it easy to carry between home, office
- 【Versatile Connectivity】 connected with multiple ports including USB 3.0 Type-C, and a headphone/mic combo jack, with Wi-Fi and Bluetooth for seamless wireless networking.
- One Year Microsoft 365
There is a trade-off between coverage and time: smaller scroll increments and longer pauses mean more opportunities for viewport-triggered content to load, but also more traversal steps and waiting. Network-idle waits can add further delay and still do not guarantee image completeness. Choose the shortest traversal and checks that meet your page’s needs, and log the final document height and failed image URLs when debugging inconsistent results.
Troubleshooting missing images
- Images are blank near the bottom: the capture may have happened before those images approached the viewport. Run the traversal before taking the full-page screenshot.
- The wait completes but some images are absent: the code treats both load and error as settled. Check
naturalWidthand log failed image URLs to distinguish failed resources from successfully loaded images. - Network idle occurs but images remain missing: network inactivity does not establish that lazy images were requested. Trigger loading first and use image-specific readiness checks.
- New content appears after scrolling: recheck document height and repeat traversal within a bounded number of passes or deadline.
- A selected component is all you need: use an element screenshot or scroll the selected element into view instead of traversing the entire page.
Or skip the browser setup
ScreenshotNeo is a website screenshot API and MCP server for developers. Its full-page capture loads lazy images. One GET request can return a screenshot or PDF; the API also supports PNG, JPEG, and WebP output. See the ScreenshotNeo documentation for the available parameters.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
Before capture, ScreenshotNeo accepts cookie and consent banners like a visitor and removes more than 60 known consent platforms, newsletter popups, and chat widgets; each step can be turned off. Bot checks, blank pages, timeouts, failed loads, and cache hits cost nothing, and response headers identify the page verdict and whether the request was billed. An MCP server provides take_screenshot, get_page_info, and capture_pdf tools for Claude, Cursor, and other MCP clients. The Free plan includes 1,000 screenshots a month with no card; paid plans start at $5 for 3,000 shots. Sign up for free and get 1,000 screenshots a month with no card.
Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallCrashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteFrequently Asked Questions
Does Puppeteer’s full-page screenshot trigger lazy loading by itself?
Do not rely on it to request every offscreen image. Traverse the page first, then capture.
Should I wait for every image’s load event?
Wait for load or error so failed requests do not block completion, then check naturalWidth if successful loading is required.
Quick Recap
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




