Page Rendering Optimization (Virtual DOM, Virtual Scroll)

Page Rendering Optimization: Virtual DOM and Virtual Scroll

Development and maintenance of all types of websites:

Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Our competencies:

Frequently Asked Questions

Latest works

  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1287
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1248
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    986
  • image_crm_chasseurs_493_0.webp
    CRM development for Chasseurs
    1034
  • image_website-sbh_0.webp
    Website development for SBH Partners
    1111
  • image_website-_0.webp
    Website development for Red Pear
    556

Page Rendering Optimization: Virtual DOM and Virtual Scroll

We optimize slow React and JavaScript applications for clients who face rendering bottlenecks: long lists that freeze the browser, dashboards that lag on data updates, or modals with noticeable open delay. Our team profiles the application, identifies root causes, and delivers measurable improvements — typically 5 to 20 times faster rendering. Delivery takes one to seven days depending on scope. We have optimized 20+ React applications and know which patterns cause the most pain.

Slow rendering is always measurable before optimization. We start with profiling, not guessing. Our audits show that 80% of performance problems come from three sources: unvirtualized large lists, unnecessary component re-renders, and unbounded Context re-renders. Fixing these in the right order delivers the best return on engineering time.

What's Included in Our Rendering Optimization Service

We deliver page rendering optimization turnkey. The scope covers:

  • Profiling session with React DevTools and Chrome Performance to establish a baseline
  • Identification of the top three rendering bottlenecks with measured impact
  • Virtualization of long lists and tables using TanStack Virtual or react-window
  • Reduction of unnecessary re-renders via React.memo, useCallback, and useMemo
  • Context refactoring to isolate high-frequency updates
  • Deferred rendering for non-urgent updates using React 18 transitions
  • Performance report with before-and-after measurements

Profiling Before Optimization

Before any change, we establish a baseline measurement. This gives us concrete numbers to compare against and ensures we fix the right problems.

React DevTools Profiler records component render durations and re-render frequency. We look for components with high actual duration and components that re-render on every parent update. The "why did this render" feature in the profiler shows exactly which prop or state change triggered each render.

Chrome Performance panel captures Long Tasks over 50ms, Recalculate Style events, and Layout thrashing. This reveals problems that the React profiler does not see, such as forced reflows from reading DOM dimensions inside render.

// Quick measurement without DevTools const start = performance.now(); // ... operation console.log(`Took: ${performance.now() - start}ms`); import { Profiler } from 'react'; <Profiler id="ProductList" onRender={(id, phase, actualDuration) => { if (actualDuration > 16) { console.warn(`Slow render: ${id} took ${actualDuration}ms (${phase})`); } }}> <ProductList /> </Profiler> 

Virtual Scroll: Why Large DOM Hurts Performance

A table with 1000 rows creates 1000 DOM nodes, plus cells. The browser keeps all nodes in memory, recalculates styles on every change, and iterates all elements on scroll. At 5000 rows, the page lags on any hardware.

Virtualization renders only the visible rows plus a small overscan buffer. On scroll, the virtualizer swaps content while maintaining one fixed set of DOM nodes.

TanStack Virtual for Variable-Height Lists

import { useVirtualizer } from '@tanstack/react-virtual'; function VirtualList<T>({ items, itemHeight, renderItem }: VirtualListProps<T>) { const parentRef = useRef<HTMLDivElement>(null); const virtualizer = useVirtualizer({ count: items.length, getScrollElement: () => parentRef.current, estimateSize: () => itemHeight, overscan: 5, }); return ( <div ref={parentRef} style={{ height: '600px', overflow: 'auto' }}> <div style={{ height: `${virtualizer.getTotalSize()}px`, position: 'relative' }}> {virtualizer.getVirtualItems().map((virtualItem) => ( <div key={virtualItem.key} style={{ position: 'absolute', top: 0, width: '100%', height: `${virtualItem.size}px`, transform: `translateY(${virtualItem.start}px)`, }} > {renderItem(items[virtualItem.index], virtualItem.index)} </div> ))} </div> </div> ); } 

Eliminating Unnecessary Re-renders

Unnecessary re-renders slow down applications in a different way from large DOM. A single re-render takes a few milliseconds. If 50 components re-render on every keystroke in a search input, the user experiences visible lag.

The most common causes are new function references created on every render, new object literals as prop values, and Context consumers re-rendering when unrelated parts of the Context change.

useCallback and React.memo

// Without memoization: new function on every parent render // With memoization: stable reference, child skips render function Parent() { const handleClick = useCallback((id: number) => doSomething(id), []); return <Child onClick={handleClick} />; } const ProductCard = memo(function ProductCard({ product, onAddToCart }: Props) { return ( <div className="card"> <h3>{product.name}</h3> <button onClick={() => onAddToCart(product.id)}>Add to cart</button> </div> ); }, (prev, next) => prev.product.id === next.product.id && prev.onAddToCart === next.onAddToCart); 

Context Optimization

A single large Context re-renders all consumers when any value changes. We split Contexts by update frequency: user data changes rarely, cart changes per item, theme changes almost never. Separating them eliminates cascading re-renders.

// Split by update frequency instead of combining everything const UserContext = createContext(user); // rarely changes const CartContext = createContext(cart); // changes frequently const ThemeContext = createContext(theme); // almost never changes 

Why Do Our Clients Get Faster Results?

Our team has delivered rendering optimizations for 20+ React applications. We know where to look first. The profiling phase takes two to four hours and gives us a prioritized list of fixes with estimated impact before we write a single line of code.

We deliver results as a complete package: profiling report, code changes, tests verifying the optimization, and a performance comparison report your team can share with stakeholders.

Work Timeline
Performance audit with report 1 day
Virtualize one heavy list or table 1–2 days
Comprehensive optimization: virtualization, re-renders, Context 3–7 days
Full performance refactor of a large SPA 2–4 weeks

Contact us to request a performance audit. We will profile your application, identify the top bottlenecks, and send a quote for the optimization work.