Project

General

Profile

Actions

dev #2068

open

Issue: Hydration Errors & Performance Optimization

Added by Md.Sajib Ahmed about 1 year ago. Updated about 1 year ago.

Status:
Complete
Priority:
High
Category:
BUG
Target version:
Start date:
03/04/2025
Due date:
03/04/2025 (about 13 months late)
% Done:

100%

Estimated time:
6:00 h
Spent time:

Description

1. Solve Footer Hydration Error

  • Implement lazy loading for client components.
  • Properly map and structure elements to avoid mismatches.

2. Optimize Google Analytics & Tag Manager Integration

  • Use next@third-party packages for seamless integration.
  • Remove manually added script tags that cause hydration errors.
  • Ensure proper loading order for analytics scripts.

3. Replace <script> Tags with Next.js <Script> Component

  • Optimize script execution using Next.js <Script> for better performance.
  • Minimize blocking resources and improve page load speed.

4. Modify Google Sideads Code

  • Fix hydration errors related to ad scripts.
  • Optimize initial loading to prevent layout shifts.

5. Apply Lazy Loading to Client Components

  • Dynamically import all client components where hydration issues occur.
  • Ensure SSR compatibility while improving render efficiency.
Actions

Also available in: Atom PDF