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:
- Compress images before upload:
- Enable lazy loading:
- Use responsive images:
- Convert to WebP:
- Audit loaded scripts:
- Remove unused scripts:
- Combine scripts:
- Use async/defer:
- Enable CSS minification:
- Remove unused CSS:
- Inline critical CSS:
- Enable browser caching via
.htaccess: - Install caching plugin:
- Configure ShahiLandin cache settings:
- Check hosting resources:
- Enable object caching:
- Optimize database:
- Use CDN (see below)
- Set up Cloudflare (free option):
- Alternative CDNs:
- Configure CDN with ShahiLandin:
- Simplify landing page:
- Increase PHP memory limit:
- Optimize assets:
- Archive old landing pages:
- Increase pagination:
- Database cleanup:
- Enable automatic cleanup:
- Manual cleanup via WP-CLI:
- Archive old data:
- Defer non-critical CSS:
- Defer JavaScript:
- Enable ShahiLandin optimization:
- Optimize hero image:
- Reduce server response time (see TTFB solutions above)
- Remove animation delays:
- Inline critical CSS (see above)
- Minimize HTML size:
- Preconnect to external domains:
- Set image dimensions:
- Reserve space for dynamic content:
- Use font-display: swap:
- Remove heavy JavaScript libraries:
- Code splitting:
- Use Web Workers for heavy computations
- Self-host fonts:
- Subset fonts:
- Preload key fonts:
- Count current requests:
- Combine files:
- Use data URIs for small images:
- Mirror external assets locally:
- Set timeout fallbacks:
- Ensure landing page is responsive, not separate mobile version
- Remove mobile detection redirects
- Use responsive design instead of separate mobile site
- Clear ShahiLandin cache:
- Clear WordPress cache:
- Clear CDN cache:
- Clear browser cache:
- Reduce cache duration:
- Auto-clear cache on update:
- Exclude from page cache:
- Use edge-side includes (ESI) if CDN supports it
- Switch to server-side tracking:
- Add indexes (if missing):
- Manual index creation (if needed):
- Optimize tables regularly:
- Clean up post meta:
- Delete old revisions:
- Limit revisions in
wp-config.php: - Google PageSpeed Insights:
- GTmetrix:
- WebPageTest:
- Chrome DevTools:
- [ ] 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
- Performance Optimization Feature Guide
- Cache and Plugin Conflicts
- Display and Rendering Issues
– Use tools: TinyPNG, ImageOptim, Squoosh
– Target: Under 200KB per image
– Format: WebP for best compression (with JPG fallback)
– Go to ShahiLandin → Settings → Performance
– Check Enable Lazy Loading for Images
– Save Changes
`html

`
– 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:
– Open DevTools → Network tab
– Refresh page
– Sort by Size (largest first)
– Identify unnecessary scripts
– Edit landing page → HTML tab
– Remove or comment out unused tags
- Download external scripts - Combine into single file - Upload to WordPress and reference locally
`html
`
Problem 3: Excessive CSS
Symptom: CSS file size over 100KB, many unused styles.
Solution:
- Go to Settings → Performance
- Check Minify CSS
- Save Changes
- Use Chrome DevTools Coverage tab
- Identify unused CSS rules
- Remove from CSS editor
- Extract above-the-fold CSS
- Place in
`
Problem 4: No Caching Enabled
Symptom: Every page load is slow, even for repeat visitors.
Solution:
`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"
`
- WP Super Cache (free, simple)
- W3 Total Cache (free, advanced)
- WP Rocket (paid, comprehensive)
- 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:
- Verify adequate RAM and CPU
- Contact hosting support if limits reached
- Consider upgrading hosting plan
- Install Redis or Memcached
- Enable in caching plugin
- Or use Redis Object Cache plugin
- Install WP-Optimize plugin
- Clean up post revisions, spam comments
- Optimize database tables
Problem 6: No Content Delivery Network (CDN)
Symptom: Slow loading for international visitors.
Solution:
- Sign up at cloudflare.com
- Change nameservers as instructed
- Enable Auto Minify and Brotli compression
- Configure page rules for caching
- BunnyCDN: Fast and affordable
- KeyCDN: Pay-as-you-go pricing
- AWS CloudFront: Scalable enterprise option
- 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:
- Remove unnecessary HTML elements
- Reduce CSS complexity
- Minimize inline styles
- Add to wp-config.php:
`php
define('WPMEMORYLIMIT', '256M');
define('WPMAXMEMORY_LIMIT', '512M');
`
- Or contact hosting provider
- 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:
- Move to "Draft" status if not active
- Or delete permanently (after backup)
- Admin → Screen Options → Number of items per page
- Reduce from 20 to 10
- 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:
- Go to Settings → Analytics
- Set Data Retention Period: 90 days (or as needed)
- Old data automatically deleted
`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"
`
- 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:
`html
`
`html
`
- Settings → Performance
- Check Optimize CSS Delivery
- Check Defer JavaScript Loading
Problem 2: Largest Contentful Paint (LCP) High
Error: "LCP takes 4+ seconds"
Solution:
- Compress aggressively
- Use WebP format
- Preload hero image:
`html
`
- Reduce or remove entrance animations
- Load visible content immediately
Problem 3: First Contentful Paint (FCP) Slow
Error: "FCP over 3 seconds"
Solution:
- Remove whitespace
- Enable minification: Settings → Performance → Minify HTML
`html
`
Problem 4: Cumulative Layout Shift (CLS)
Error: "Elements shift during loading"
Solution:
`html

`
`css
.ad-container {
min-height: 250px; / Reserve space before ad loads /
}
`
`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:
- Replace jQuery with vanilla JS where possible
- Use lightweight alternatives (e.g., Alpine.js instead of Vue)
- Load JavaScript only when needed
- Example: Load form validation only when form is visible
Asset Loading Issues
Problem 1: Fonts Loading Slowly
Solution:
- Download from Google Fonts
- Upload to WordPress uploads folder
- Reference locally instead of CDN
- Only include characters you need
- Use Google Fonts with subset parameter:
`html`
`html
`
Problem 2: Too Many HTTP Requests
Solution:
- Open DevTools → Network tab
- Reload page
- Check total number (aim for under 50)
- Merge multiple CSS files into one
- Merge multiple JavaScript files into one
- Use CSS sprites for small icons
`css
.icon {
background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0...');
}
`
Problem 3: External Assets Timing Out
Solution:
- Use asset mirroring in HTML import wizard
- Or manually download and upload to WordPress
`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

`
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:
Caching Issues
Problem 1: Changes Not Appearing
Symptom: Edit landing page but old version still displays.
Solution:
- Edit landing page
- Click Clear Cache button (if available)
- Or go to Settings → Performance → Clear All Caches
- 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
- Cloudflare: Caching → Purge Everything
- Other CDNs: Check their documentation
- 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:
- Settings → Performance → Cache Duration
- Set to 1 hour instead of 24 hours during active development
- 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:
- Add landing page URLs to cache exclusions
- Caching plugin → Settings → Exclusions
- Custom development required
- Track views at server level before cache
Database Performance
Problem 1: Slow Queries
Symptom: Database queries taking multiple seconds.
Solution:
- ShahiLandin should auto-create indexes
- Verify in phpMyAdmin:
- Table wpshahilandinanalytics
- Indexes on: postid, createdat, goal
`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);
`
`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:
- Remove orphaned meta data:
`sql
DELETE FROM wppostmeta WHERE postid NOT IN (SELECT ID FROM wp_posts);
`
`bash
wp post delete $(wp post list --post_type=revision --format=ids) --force
`
`php
define('WPPOSTREVISIONS', 3);
`
Measuring Performance
Tools to Use
- https://pagespeed.web.dev/
- Tests mobile and desktop
- Provides actionable recommendations
- https://gtmetrix.com/
- Detailed waterfall diagrams
- Historical performance tracking
- https://www.webpagetest.org/
- Advanced testing options
- Multiple test locations
- 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:
---
Related Articles:
Share this article
Still need help?
Our support team is ready to assist you with personalized guidance for your workspace.