Remove Unused CSS and JavaScript

How to optimize baidu.com

Generic SiteScore: 69/100Analyzed March 2026Re-analyze this site

Remove Unused CSS and JavaScript

High Impact+15 points estimated

Why It Matters

Unused code blocks rendering for 1.05 seconds and wastes 114 KiB of bandwidth affecting both LCP and FCP.

How to Fix

Remove 99.6% unused CSS from inline styles and external stylesheets. Split JavaScript bundles to load only required code per page. Defer non-critical JavaScript modules until after page load using dynamic imports.

0Needs Improvement

What This Score Means

A score of 69 falls in the "Needs Improvement" 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

5.4s
Poor

Good: < 2.5s

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

INP

Interaction to Next Paint

40ms
Good

Good: < 200ms

Measures how quickly the page responds to user interactions

CLS

Cumulative Layout Shift

0.01
Good

Good: < 0.1

Measures visual stability - how much content shifts during page load

AI Performance Analysis

This website has poor performance issues with a score of 69/100, primarily due to extremely slow content loading. The biggest problem is the Largest Contentful Paint taking 5.4 seconds, which is far above the recommended 2.5 seconds, caused by oversized and unoptimized images including the main Baidu logo. The site is loading 88 KiB of unused JavaScript and 26 KiB of unused CSS, while also suffering from render-blocking resources that delay initial page painting by over 1 second. Quick wins include optimizing images to modern formats like WebP, removing unused code, and implementing proper caching strategies, which could collectively improve the performance score by 25+ points and dramatically enhance user experience.

Other Optimization Recommendations

Optimize Image Delivery and Compression

High Impact+12 points estimated

Why It Matters:

Images waste 79 KiB and delay LCP by 150ms, with the main logo being 92% larger than needed.

How to Fix:

Convert the Baidu logo and profile images to WebP format for 30-50% size reduction. Resize images to match their display dimensions (logo from 550x176 to 312x100). Add fetchpriority='high' to the LCP logo image to prioritize its loading.

Implement Modern JavaScript Build Process

Medium Impact+8 points estimated

Why It Matters:

Legacy JavaScript polyfills add 43 KiB of unnecessary code that modern browsers don't need.

How to Fix:

Configure build tools to target modern browsers and avoid transpiling ES6+ features like Array.from, Object.assign, and async/await. Use differential serving to send modern code to modern browsers and legacy code only to older ones. Remove Babel transforms for features supported by 95%+ of users.

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

Want to Analyze YOUR Website?

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

More Generic Speed Tests

Generic Performance Resources

Frequently Asked Questions