Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing performance issues on their website, suspecting that the file admin-ajax.php is causing delays when navigating between pages. They are inquiring about the possibility of disabling admin-ajax.php on the frontend while keeping it functional in the wp-admin area.
Solution:
We explained that admin-ajax.php is essential for routing Ajax requests in WordPress, allowing for dynamic page content updates without full page reloads. We have checked the client's site and found that admin-ajax.php is being used by the DIVI theme's filters and the 'load more products' button, which are not related to WPML. We advised against disabling admin-ajax.php on the frontend as it could potentially break the website's functionality. If the client has further questions or if this solution does not seem relevant, we recommend opening a new support ticket at WPML support forum.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 1 reply, has 2 voices.

Last updated by Marsel Nikolli 1 year, 5 months ago.

Assisted by: Marsel Nikolli.

Author Posts
November 21, 2023 at 10:52 am #14885639

davidN-66

I've observed that there's a file load called admin-ajax.php, and I'm wondering if it's possible to deactivate its loading on the frontend (while keeping it functional on wp-admin). This file seems to be causing performance issues, leading to delays when navigating between pages. I'm curious about the specific reason WPML loads admin-ajax.php and if there's any way to disable it on the front end.

Thanks in advance.

November 21, 2023 at 12:17 pm #14886291

Marsel Nikolli

Hi,

Thank you for contacting WPML Support, I will be happy to help you today.

The "admin-ajax.php" file contains all the code for routing Ajax requests on WordPress.
WordPress uses it to refresh the page’s contents without reloading it, thus making it dynamic and interactive to the users.

In your case from what I was able to check from the Chrome developers tool, admin-ajax.php is being used from the DIVI filters or when you click the button to load more products (which still seems to be part of the DIVI filters hooks). I wasn’t able to see anything related to WPML using Ajax calls.

I wouldn’t advise to disable the admin-ajax.php use on the website as it might break your website.

Let me know if you have any other questions.

Best regards,
Marsel