The main benefit for JSON is the ability to sync the JSON data to and from the database, and also the ability to simply drop a JSON file into your theme’s
Sharing field groups between projects is a good example of why this is easier than PHP.
performance should be similar between PHP and JSON, if neither had field groups in the database.
If you are experiencing slowdown issues in the admin, this will most likely be due to HTML and JS, not PHP.
Check your page source. How many lines of HTML are in the ‘slow’ admin page?
Next, disable JS. What is the time difference when JS in enabled/disabled?
If the issue is JS, perhaps you have some complex conditional logic? This can slow down your page load if using large amounts of nested fields. The latest ACF PRO contains some JS performance improvements, but this is simply a limitation of our browsers at the current time.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
© 2023 Advanced Custom Fields.