Fix Layout Shifts from Carousel

How to optimize pearsoncars.com

Ruby on Rails SiteScore: 19/100Analyzed February 2026

Fix Layout Shifts from Carousel

Medium Impact+10 points estimated

Why It Matters

Layout shifts (CLS: 0.253) are caused by carousel elements moving during page load, hurting user experience.

How to Fix

Add explicit dimensions to all carousel images in your Rails views using width and height attributes. Reserve space for carousel controls with CSS. Use Rails image helpers with size parameters: image_tag('image.webp', size: '412x309', loading: 'lazy').

0Poor

What This Score Means

A score of 19 falls in the "Poor" range (50-89). While it is better than poor (0-49), you should aim for 90+ to provide an optimal user experience and maximize SEO benefits.

This site is slower than approximately 35% of similar sites. The main issues affecting performance are image optimization, JavaScript execution time, and layout stability.

Addressing these issues could improve your conversion rate by 15-20% and boost your search engine rankings.

Core Web Vitals Analysis

LCP

Largest Contentful Paint

44.3s
Poor

Good: < 2.5s

Measures how long it takes for the main content to appear on screen

INP

Interaction to Next Paint

267ms
Needs Improvement

Good: < 200ms

Measures how quickly the page responds to user interactions

CLS

Cumulative Layout Shift

0.25
Poor

Good: < 0.1

Measures visual stability - how much content shifts during page load

AI Performance Analysis

This Ruby on Rails site has severe performance issues with a critically low score of 19/100. The biggest problem is an enormous 12.5 MB page size combined with render-blocking CSS files that delay content from appearing for nearly 4 seconds, resulting in painfully slow load times of 19+ seconds for first content and 44+ seconds for the main image. The site is also plagued by layout shifts (elements jumping around as the page loads) and massive amounts of unused JavaScript and CSS code that could be removed. Fixing the render-blocking resources, compressing images, and removing unused code could dramatically improve performance and make the site usable again.

Other Optimization Recommendations

Eliminate Render-Blocking CSS Resources

High Impact+25 points estimated

Why It Matters:

Render-blocking CSS is delaying First Contentful Paint by 3.85 seconds, severely impacting user experience.

How to Fix:

In your Rails application, move critical CSS inline in the <head> section and defer non-critical CSS using media='print' onload="this.media='all'". Use Rails asset pipeline to split CSS into critical and non-critical bundles. Consider using the 'critical' gem to automatically extract above-the-fold CSS.

Reduce Unused JavaScript Bundles

High Impact+30 points estimated

Why It Matters:

2.2MB of unused JavaScript is blocking the main thread and delaying LCP by 11.85 seconds.

How to Fix:

Audit your Rails application's JavaScript dependencies and remove unused gems from your Gemfile. Use Webpack Bundle Analyzer to identify large unused modules. Defer YouTube embed scripts and reCAPTCHA until user interaction using dynamic imports or the 'defer' attribute.

Want to Analyze YOUR Website?

Get AI-powered performance insights with actionable fixes in 30 seconds

More Ruby on Rails Speed Tests

Ruby on Rails Performance Resources

Frequently Asked Questions

Keep Your Site Fast After Optimization

Once your site is optimized, maintain that speed. Use DeployHQ for zero-downtime, automated deployments—so performance fixes and updates go live safely every time, without breaking your site.

Explore DeployHQ →Trusted by engineering teams shipping high-performance sites