ShahiLanding

Performance Issues

This guide helps you troubleshoot slow loading times, high resource usage, and other performance-related problems with ShahiLandin landing pages.

Slow Page Load Times

Symptom

Landing pages take several seconds to load or timeout completely.

Solutions

Problem 1: Large Unoptimized Images

Symptom: Page loads slowly, especially on mobile. DevTools shows large image file sizes.

Solution:

  1. Compress images before upload:
  2. – Use tools: TinyPNG, ImageOptim, Squoosh
    – Target: Under 200KB per image
    – Format: WebP for best compression (with JPG fallback)

  3. Enable lazy loading:
  4. – Go to ShahiLandin → Settings → Performance
    – Check Enable Lazy Loading for Images
    – Save Changes

  5. Use responsive images:
  6. `html
    Description
    `

  7. Convert to WebP:
  8. – Install “WebP Express” or “ShortPixel” plugin
    – Automatically converts images to WebP
    – Falls back to JPG for unsupported browsers

    Problem 2: Too Many External Scripts

    Symptom: Waterfall diagram shows many external JavaScript files loading.

    Solution:

  9. Audit loaded scripts:
  10. – Open DevTools → Network tab
    – Refresh page
    – Sort by Size (largest first)
    – Identify unnecessary scripts

  11. Remove unused scripts:
  12. – Edit landing page → HTML tab
    – Remove or comment out unused



    `

    Problem 3: Excessive CSS

    Symptom: CSS file size over 100KB, many unused styles.

    Solution:

  13. Enable CSS minification:
  14. - Go to Settings → Performance
    - Check Minify CSS
    - Save Changes

  15. Remove unused CSS:
  16. - Use Chrome DevTools Coverage tab
    - Identify unused CSS rules
    - Remove from CSS editor

  17. Inline critical CSS:
  18. - Extract above-the-fold CSS
    - Place in

    `

    Problem 4: No Caching Enabled

    Symptom: Every page load is slow, even for repeat visitors.

    Solution:

  19. Enable browser caching via .htaccess:
  20. `apache

    ExpiresActive On
    ExpiresByType image/jpg "access plus 1 year"
    ExpiresByType image/jpeg "access plus 1 year"
    ExpiresByType image/gif "access plus 1 year"
    ExpiresByType image/png "access plus 1 year"
    ExpiresByType image/webp "access plus 1 year"
    ExpiresByType text/css "access plus 1 month"
    ExpiresByType application/javascript "access plus 1 month"

    `

  21. Install caching plugin:
  22. - WP Super Cache (free, simple)
    - W3 Total Cache (free, advanced)
    - WP Rocket (paid, comprehensive)

  23. Configure ShahiLandin cache settings:
  24. - Go to Settings → Performance
    - Enable Cache Landing Page Output
    - Set cache duration (default: 1 hour)

    Problem 5: Server Response Time (TTFB) High

    Symptom: Time to First Byte over 600ms.

    Solution:

  25. Check hosting resources:
  26. - Verify adequate RAM and CPU
    - Contact hosting support if limits reached
    - Consider upgrading hosting plan

  27. Enable object caching:
  28. - Install Redis or Memcached
    - Enable in caching plugin
    - Or use Redis Object Cache plugin

  29. Optimize database:
  30. - Install WP-Optimize plugin
    - Clean up post revisions, spam comments
    - Optimize database tables

  31. Use CDN (see below)
  32. Problem 6: No Content Delivery Network (CDN)

    Symptom: Slow loading for international visitors.

    Solution:

  33. Set up Cloudflare (free option):
  34. - Sign up at cloudflare.com
    - Change nameservers as instructed
    - Enable Auto Minify and Brotli compression
    - Configure page rules for caching

  35. Alternative CDNs:
  36. - BunnyCDN: Fast and affordable
    - KeyCDN: Pay-as-you-go pricing
    - AWS CloudFront: Scalable enterprise option

  37. Configure CDN with ShahiLandin:
  38. - Most CDNs work automatically
    - Ensure landing page assets are cached
    - Test with: https://tools.keycdn.com/speed

    High Memory Usage

    Symptom

    WordPress admin becomes slow, or you see "Memory limit exceeded" errors.

    Solutions

    Problem 1: Landing Page Too Complex

    Symptom: Large HTML/CSS files consuming memory.

    Solution:

  39. Simplify landing page:
  40. - Remove unnecessary HTML elements
    - Reduce CSS complexity
    - Minimize inline styles

  41. Increase PHP memory limit:
  42. - Add to wp-config.php:
    `php
    define('WPMEMORYLIMIT', '256M');
    define('WPMAXMEMORY_LIMIT', '512M');
    `
    - Or contact hosting provider

  43. Optimize assets:
  44. - Compress images further
    - Remove unused fonts
    - Minimize JavaScript libraries

    Problem 2: Too Many Landing Pages

    Symptom: Admin dashboard slow when listing all landing pages.

    Solution:

  45. Archive old landing pages:
  46. - Move to "Draft" status if not active
    - Or delete permanently (after backup)

  47. Increase pagination:
  48. - Admin → Screen Options → Number of items per page
    - Reduce from 20 to 10

  49. Database cleanup:
  50. - Delete auto-drafts and revisions
    - Use WP-CLI:
    `bash
    wp post delete $(wp post list --posttype=shahilanding --post_status=auto-draft --format=ids) --force
    `

    Problem 3: Analytics Database Growing Large

    Symptom: Database size increasing rapidly, queries slowing down.

    Solution:

  51. Enable automatic cleanup:
  52. - Go to Settings → Analytics
    - Set Data Retention Period: 90 days (or as needed)
    - Old data automatically deleted

  53. Manual cleanup via WP-CLI:
  54. `bash

    Delete analytics data older than 90 days

    wp db query "DELETE FROM wpshahilandinanalytics WHERE createdat < DATESUB(NOW(), INTERVAL 90 DAY)"

    Optimize table

    wp db query "OPTIMIZE TABLE wpshahilandinanalytics"
    `

  55. Archive old data:
  56. - Export to CSV before deletion
    - Store in external analytics platform
    - Keep database lean

    Performance Score Issues

    Symptom

    PageSpeed Insights or GTmetrix shows low scores for landing pages.

    Solutions

    Problem 1: Render-Blocking Resources

    Error: "Eliminate render-blocking resources"

    Solution:

  57. Defer non-critical CSS:
  58. `html
    `

  59. Defer JavaScript:
  60. `html

    `

  61. Enable ShahiLandin optimization:
  62. - Settings → Performance
    - Check Optimize CSS Delivery
    - Check Defer JavaScript Loading

    Problem 2: Largest Contentful Paint (LCP) High

    Error: "LCP takes 4+ seconds"

    Solution:

  63. Optimize hero image:
  64. - Compress aggressively
    - Use WebP format
    - Preload hero image:
    `html `

  65. Reduce server response time (see TTFB solutions above)
  66. Remove animation delays:
  67. - Reduce or remove entrance animations
    - Load visible content immediately

    Problem 3: First Contentful Paint (FCP) Slow

    Error: "FCP over 3 seconds"

    Solution:

  68. Inline critical CSS (see above)
  69. Minimize HTML size:
  70. - Remove whitespace
    - Enable minification: Settings → Performance → Minify HTML

  71. Preconnect to external domains:
  72. `html `

    Problem 4: Cumulative Layout Shift (CLS)

    Error: "Elements shift during loading"

    Solution:

  73. Set image dimensions:
  74. `html
    Description
    `

  75. Reserve space for dynamic content:
  76. `css
    .ad-container {
    min-height: 250px; / Reserve space before ad loads /
    }
    `

  77. Use font-display: swap:
  78. `css
    @font-face {
    font-family: 'CustomFont';
    src: url('font.woff2');
    font-display: swap; / Prevents layout shift /
    }
    `

    Problem 5: Total Blocking Time (TBT) High

    Error: "JavaScript blocks main thread"

    Solution:

  79. Remove heavy JavaScript libraries:
  80. - Replace jQuery with vanilla JS where possible
    - Use lightweight alternatives (e.g., Alpine.js instead of Vue)

  81. Code splitting:
  82. - Load JavaScript only when needed
    - Example: Load form validation only when form is visible

  83. Use Web Workers for heavy computations
  84. Asset Loading Issues

    Problem 1: Fonts Loading Slowly

    Solution:

  85. Self-host fonts:
  86. - Download from Google Fonts
    - Upload to WordPress uploads folder
    - Reference locally instead of CDN

  87. Subset fonts:
  88. - Only include characters you need
    - Use Google Fonts with subset parameter:
    `html`

  89. Preload key fonts:
  90. `html `

    Problem 2: Too Many HTTP Requests

    Solution:

  91. Count current requests:
  92. - Open DevTools → Network tab
    - Reload page
    - Check total number (aim for under 50)

  93. Combine files:
  94. - Merge multiple CSS files into one
    - Merge multiple JavaScript files into one
    - Use CSS sprites for small icons

  95. Use data URIs for small images:
  96. `css
    .icon {
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0...');
    }
    `

    Problem 3: External Assets Timing Out

    Solution:

  97. Mirror external assets locally:
  98. - Use asset mirroring in HTML import wizard
    - Or manually download and upload to WordPress

  99. Set timeout fallbacks:
  100. `html

    `

    Mobile Performance Issues

    Symptom

    Landing page loads fast on desktop but slow on mobile.

    Solutions

    Problem 1: Not Using Responsive Images

    Solution:
    Use srcset to serve appropriate image sizes:
    `html
    Description
    `

    Problem 2: Heavy JavaScript on Mobile

    Solution:
    Conditionally load features based on screen size:
    `html

    `

    Problem 3: Mobile Redirects

    Symptom: Unnecessary redirects detected on mobile.

    Solution:

  101. Ensure landing page is responsive, not separate mobile version
  102. Remove mobile detection redirects
  103. Use responsive design instead of separate mobile site
  104. Caching Issues

    Problem 1: Changes Not Appearing

    Symptom: Edit landing page but old version still displays.

    Solution:

  105. Clear ShahiLandin cache:
  106. - Edit landing page
    - Click Clear Cache button (if available)
    - Or go to Settings → Performance → Clear All Caches

  107. Clear WordPress cache:
  108. - If using caching plugin, clear cache
    - WP Super Cache: Settings → Delete Cache
    - W3 Total Cache: Performance → Empty All Caches
    - WP Rocket: Clear Cache button in admin bar

  109. Clear CDN cache:
  110. - Cloudflare: Caching → Purge Everything
    - Other CDNs: Check their documentation

  111. Clear browser cache:
  112. - Hard refresh: Ctrl+F5 (Windows) or Cmd+Shift+R (Mac)
    - Or use incognito/private window

    Problem 2: Stale Content Served

    Symptom: Old version of landing page cached for too long.

    Solution:

  113. Reduce cache duration:
  114. - Settings → Performance → Cache Duration
    - Set to 1 hour instead of 24 hours during active development

  115. Auto-clear cache on update:
  116. - ShahiLandin automatically clears cache when page updated
    - If not working, check for plugin conflicts

    Problem 3: Analytics Not Working Due to Caching

    Symptom: Cached pages don't track views.

    Solution:

  117. Exclude from page cache:
  118. - Add landing page URLs to cache exclusions
    - Caching plugin → Settings → Exclusions

  119. Use edge-side includes (ESI) if CDN supports it
  120. Switch to server-side tracking:
  121. - Custom development required
    - Track views at server level before cache

    Database Performance

    Problem 1: Slow Queries

    Symptom: Database queries taking multiple seconds.

    Solution:

  122. Add indexes (if missing):
  123. - ShahiLandin should auto-create indexes
    - Verify in phpMyAdmin:
    - Table wpshahilandinanalytics
    - Indexes on: postid, createdat, goal

  124. Manual index creation (if needed):
  125. `sql
    ALTER TABLE wpshahilandinanalytics ADD INDEX idxpostid (post_id);
    ALTER TABLE wpshahilandinanalytics ADD INDEX idxcreatedat (created_at);
    ALTER TABLE wpshahilandinanalytics ADD INDEX idx_goal (goal);
    `

  126. Optimize tables regularly:
  127. `sql
    OPTIMIZE TABLE wp_posts;
    OPTIMIZE TABLE wp_postmeta;
    OPTIMIZE TABLE wpshahilandinanalytics;
    OPTIMIZE TABLE wpshahilandinexperiments;
    `

    Problem 2: Large wp_postmeta Table

    Symptom: Slow queries due to bloated postmeta table.

    Solution:

  128. Clean up post meta:
  129. - Remove orphaned meta data:
    `sql
    DELETE FROM wppostmeta WHERE postid NOT IN (SELECT ID FROM wp_posts);
    `

  130. Delete old revisions:
  131. `bash
    wp post delete $(wp post list --post_type=revision --format=ids) --force
    `

  132. Limit revisions in wp-config.php:
  133. `php
    define('WPPOSTREVISIONS', 3);
    `

    Measuring Performance

    Tools to Use

  134. Google PageSpeed Insights:
  135. - https://pagespeed.web.dev/
    - Tests mobile and desktop
    - Provides actionable recommendations

  136. GTmetrix:
  137. - https://gtmetrix.com/
    - Detailed waterfall diagrams
    - Historical performance tracking

  138. WebPageTest:
  139. - https://www.webpagetest.org/
    - Advanced testing options
    - Multiple test locations

  140. Chrome DevTools:
  141. - Built into Chrome browser
    - Press F12 → Lighthouse tab
    - Run performance audit

    Performance Benchmarks

    Target metrics for landing pages:

    | Metric | Good | Needs Improvement | Poor |
    |--------|------|-------------------|------|
    | Largest Contentful Paint (LCP) | ≤ 2.5s | 2.5s - 4s | > 4s |
    | First Input Delay (FID) | ≤ 100ms | 100ms - 300ms | > 300ms |
    | Cumulative Layout Shift (CLS) | ≤ 0.1 | 0.1 - 0.25 | > 0.25 |
    | Time to First Byte (TTFB) | ≤ 600ms | 600ms - 1000ms | > 1000ms |
    | Total Page Size | ≤ 1MB | 1MB - 3MB | > 3MB |
    | HTTP Requests | ≤ 30 | 30 - 50 | > 50 |

    Performance Checklist

    Use this checklist to optimize landing pages:

    • [ ] Images: Compressed, WebP format, lazy loading enabled
    • [ ] CSS: Minified, critical CSS inline, unused rules removed
    • [ ] JavaScript: Minified, deferred, async where appropriate
    • [ ] Fonts: Subset, preloaded, font-display: swap
    • [ ] Caching: Plugin installed, browser caching enabled, CDN configured
    • [ ] Database: Optimized, indexed, old data cleaned
    • [ ] Server: Adequate resources, object caching enabled
    • [ ] Mobile: Responsive images, reduced JavaScript
    • [ ] Monitoring: Regular performance tests, metrics tracked
    • ---

      Related Articles:

    • Performance Optimization Feature Guide
    • Cache and Plugin Conflicts
    • Display and Rendering Issues

Share this article

Was this article helpful?

Help us improve our documentation

Still need help?

Our support team is ready to assist you with personalized guidance for your workspace.

Submit a support ticket