Elementor stuck on the loading screen, with a grey panel and a spinner that never stops? Or does it say “Preview could not be loaded”? Both mean the editor or its preview frame failed to start, and the cause is usually exhausted PHP memory, a plugin conflict, or a security or caching layer blocking the editor. Work through the checks below in order and you will find which one it is and get the editor working again.
Quick answer: Read the error in your browser console first, then fix the cause it points to. Most stuck editors are solved by more PHP memory, Safe Mode plus a plugin check, or matching site URLs.
- Open DevTools, switch to the Console tab and reload the editor to see the error.
- Raise the WordPress memory limit to 512M in
wp-config.php. - Turn on Elementor Safe Mode; if the editor then loads, deactivate other plugins to find the conflict.
- Make the WordPress Address and Site Address match exactly, both on https.
- Turn off Cloudflare Rocket Loader and script minification for the editor, then regenerate Elementor’s files.
- For “Preview could not be loaded”, resave permalinks and remove headers that block framing.
In this guide
- Before You Start
- Step 1: Read the Browser Console Error
- Step 2: Increase the PHP Memory Limit to 512MB
- Step 3: Turn On Safe Mode and Switch the Editor Loader Method
- Step 4: Find the Conflicting Plugin or Add-on
- Step 5: Fix a Site URL Mismatch and Mixed Content
- Step 6: Turn Off Cloudflare Rocket Loader and Aggressive Caching
- Step 7: Regenerate Elementor’s Files and Clear Caches
- If Elementor Says ‘Preview Could Not Be Loaded’
- If It Still Doesn’t Work
- Frequently Asked Questions
- Next Steps

Before You Start
- Access: a WordPress administrator account, plus File Manager, FTP or SFTP access to edit
wp-config.phpand.htaccess. Cloudflare access if your site uses it. - Time: 15–30 minutes, depending on how many steps you need.
- Backup: download copies of
wp-config.phpand.htaccessbefore editing, and back up the database before Step 5. A typo in either file can take the whole site down; restoring the copy undoes it. - Live sites: deactivating plugins in Step 4 affects visitors. On a busy site, test on a staging copy first.
Step 1: Read the Browser Console Error
Don’t start changing settings in wp-admin yet. First see what fails when Elementor tries to load its editor frame. In most cases you’ll spot a 500 error, a 403 Forbidden response or a JavaScript error right away.
On the stuck editor page, right-click anywhere and choose Inspect (or press Ctrl + Shift + I on Windows, Cmd + Option + I on a Mac). Switch to the Console tab and reload the page.
Look for red error lines. Here’s what the most common ones mean:
admin-ajax.php 500 (Internal Server Error): your server ran out of PHP memory or hit a fatal error while building the editor controls. Go to Step 2.Failed to load resource: the server responded with a status of 403: a security plugin, ModSecurity rule or firewall (WAF) blocked Elementor’s REST API or AJAX call. See the FAQ below.Uncaught TypeError: Cannot read property of undefined: a third-party widget pack or caching script is loading out of order or calling outdated code. Go to Steps 3 and 4.- Mixed Content blocked: your site runs on HTTPS, but WordPress is loading the editor preview over plain HTTP. Go to Step 5.
Step 2: Increase the PHP Memory Limit to 512MB
Elementor lists 256MB as its minimum WordPress memory limit and recommends 512MB. With WooCommerce or a few add-on packs active, 256MB can run out while the editor starts, which leaves a permanent spinner. Setting 512MB gives the editor room to load.
Open wp-config.php in your site’s root folder through FTP or your host’s File Manager. Add these lines right above the /* That's all, stop editing! Happy publishing. */ comment:
define('WP_MEMORY_LIMIT', '512M');
define('WP_MAX_MEMORY_LIMIT', '512M');If your host doesn’t let wp-config.php raise memory, add these lines at the very top of the .htaccess file in the same folder instead:
php_value memory_limit 512M
php_value max_execution_time 300
php_value max_input_vars 3000These php_value lines only work on Apache with mod_php or on LiteSpeed. On Apache with PHP-FPM or CGI they cause a 500 error, so remove them if that happens.
To confirm the change, open Elementor > System Info or Tools > Site Health > Info > Server and check the memory limit. If it still shows the old value, your host caps it; follow the guide to increase the PHP memory limit in WordPress for the control-panel steps.
Step 3: Turn On Safe Mode and Switch the Editor Loader Method
Elementor has built-in tools that tell you whether the freeze comes from your server or from a theme or plugin conflict.
Go to WP Admin > Elementor > Tools > General. Set the Safe Mode dropdown to Enable and save. Safe Mode loads only Elementor’s core files in the editor and doesn’t change what visitors see, as described in the Elementor Safe Mode documentation. Open the page in Elementor again: if it loads now, the cause is another plugin or your theme, and Step 4 finds it.
If Safe Mode doesn’t help, change how the editor loads its scripts:
- Go to WP Admin > Elementor > Settings > Advanced.
- Find Switch Editor Loader Method.
- Change it from Disable to Enable.
- Click Save Changes and reopen the editor.
According to Elementor’s documentation, this splits the editor’s configuration code across separate lines so that low-resource servers can read it. You can leave it enabled; it does not affect front-end performance.
Step 4: Find the Conflicting Plugin or Add-on
If the editor loads in Safe Mode, a plugin or theme script is breaking it. Outdated add-ons often break when Elementor ships a major update.
The fastest way to find the culprit:
- Go to Plugins > Installed Plugins.
- Select everything except Elementor and Elementor Pro.
- Deactivate them in bulk.
- Open your page in Elementor again.
If the editor loads, turn your plugins back on one at a time, reopening the editor after each. The one that brings the spinner back is the conflict. Update it, replace it, or report it to its developer. The usual suspects:
- Outdated widget packs (Essential Addons, Ultimate Addons, Happy Addons).
- Performance plugins that combine or minify admin scripts.
- Security plugins that add strict Content Security Policy (CSP) headers, which tell the browser which scripts and frames it may load.
Step 5: Fix a Site URL Mismatch and Mixed Content
The editor sidebar and the live preview must load from exactly the same address. If the site URL in WordPress doesn’t match the address in your browser bar (http:// vs https://, or www vs non-www), the browser treats them as different sites and blocks the preview.
Check your URLs under Settings > General:
- WordPress Address (URL):
https://yourdomain.com - Site Address (URL):
https://yourdomain.com
They must match character for character.
To send all HTTP traffic to HTTPS, open the .htaccess file in your site’s root folder and add this block before the # BEGIN WordPress rules:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>Save the file and open the http:// version of your site. It should jump straight to https://. If you get a “too many redirects” error instead, remove the block; your host or CDN already redirects.
Then back up your database and go to WP Admin > Elementor > Tools > Replace URL. Put your old http:// address in the first field, your https:// address in the second, and click Replace URL. If mixed-content warnings remain elsewhere on the site, see how to fix WordPress mixed content warnings and force HTTPS.
Step 6: Turn Off Cloudflare Rocket Loader and Aggressive Caching
Cloudflare Rocket Loader delays JavaScript to speed up page rendering. That helps public pages, but it breaks the order in which Elementor’s editor scripts must run.
If you use Cloudflare, turn Rocket Loader off, at least for editor pages:
- Log in to Cloudflare and select your domain.
- To turn it off site-wide, open Speed > Optimization and switch Rocket Loader off.
- To keep it on for visitors, create a Configuration Rule instead that matches requests whose URL contains
elementorand turns Rocket Loader off. - If you also cache HTML at the edge, add a cache rule that bypasses cache for the same requests, then save and deploy.
If you run WP Rocket, LiteSpeed Cache or Autoptimize, add these paths to the plugin’s JavaScript minification and combination exclusions:
/wp-admin/admin-ajax.php
elementor-preview
wp-content/plugins/elementor/assets/js/Clear the plugin’s cache after saving, then reopen the editor.
Step 7: Regenerate Elementor’s Files and Clear Caches
Corrupted generated CSS files or stale cached data can also stall the editor. Clearing them makes Elementor rebuild its styles.
- Go to WP Admin > Elementor > Tools > General.
- Click the button that rebuilds Elementor’s generated files (labeled Regenerate Files & Data or Clear Files & Data, depending on your Elementor version).
- Click Sync Library to pull fresh template definitions.
- Purge your server-side cache (Redis, Varnish or LiteSpeed) and clear your browser cache.
If the editor still hangs with no clear console error, turn on WordPress debug logging by adding these lines to wp-config.php, above the “stop editing” comment:
define('WP_DEBUG', true);
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', false);Reload Elementor, then open /wp-content/debug.log. The last lines name the PHP file and line number that failed, which usually points to a specific plugin folder. Set WP_DEBUG back to false when you’re done.
If Elementor Says ‘Preview Could Not Be Loaded’
This message is a close relative of the endless loading screen. The editor shows your page inside a frame, and the error means that frame request failed or was blocked. Work through the steps above first, then check three causes that are specific to the preview:
- Stale rewrite rules. Go to Settings > Permalinks and click Save Changes without changing anything. This rebuilds the rewrite rules the preview URL depends on.
- A header that forbids framing. A security plugin, your server configuration or a CDN may send
X-Frame-Options: DENY, or a Content-Security-Policy withframe-ancestors 'none'. Both stop the browser from showing your own page inside the editor. UseSAMEORIGINorframe-ancestors 'self'instead. - A redirect on the preview URL. If the site redirects between
wwwand non-www, or between HTTP and HTTPS, the preview loads from a different origin than the editor. Fix the Site URL mismatch from Step 5 so both use exactly the same address.
To see which of these headers your server sends, run this in a terminal on your own computer (replace example.com with your domain):
curl -sI https://example.com/ | grep -iE "x-frame-options|content-security-policy|location"If a line shows X-Frame-Options: DENY or frame-ancestors 'none', that header is the cause. A location: line means the homepage redirects somewhere else. No output means none of these headers were sent.
If It Still Doesn’t Work
- Only one page hangs: create a blank test page and open it in Elementor. If it loads, the problem is content on the original page (see the first FAQ).
- It hangs even in Safe Mode with all plugins off: the cause is on the server. Check the PHP version (FAQ below), the memory limit in System Info, and the debug log from Step 7.
- The editor loads but saving fails with a 403: that is a firewall blocking the save request. Follow the guide to fix Elementor 403 Forbidden errors when saving.
Frequently Asked Questions
Why does Elementor work on some pages but get stuck on others?
The stuck page usually has broken content of its own. Common examples are an unclosed tag inside an HTML widget, a bad shortcode, or a query loop that pulls in thousands of posts and exhausts memory. If a blank test page opens fine, remove widgets from the stuck page one at a time until it loads.
Why does Elementor load in Safe Mode but not normally?
Because another plugin or your theme is interfering. Safe Mode loads Elementor without other plugins and with a neutral theme in the editor, so if it works there, the conflict is outside Elementor. Re-enable plugins one at a time, as in Step 4, to find which one breaks the editor.
Can an outdated PHP version cause Elementor to hang?
Yes. Elementor requires PHP 7.4 or higher and recommends PHP 8.3 or newer. Older versions such as PHP 7.2 throw syntax and fatal errors when they load current code, which can stop the editor from starting. Change the PHP version in your hosting control panel, then reopen the editor.
What does a 403 Forbidden error on admin-ajax.php mean?
It means a security firewall blocked the editor’s requests. The firewall could be Wordfence, Solid Security, the Cloudflare WAF or server-level ModSecurity. Allow your IP in the plugin, or briefly disable the server firewall to confirm it is the cause. Then turn it back on and ask your host to whitelist the rule that fired.
Next Steps
Once the editor opens, turn Safe Mode off again under Elementor > Tools > General, and remove the debug lines if you added them. If you found an outdated add-on, update or replace it before your next Elementor update. If saving is the next thing that fails, the Elementor 403 guide covers firewall rules and PHP input limits.

