New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Admin area speed of loading #1054
Comments
|
@lordmatt is this the standard admin area or the PressForward admin area and does your system rely on standard wp-cron or do you have a traditional cron task hitting your wp-cron? |
|
I've had extensive problems with pageload time in the admin, and in my tests I've narrowed it down to the pressforward/Core/Admin/PFTemplater.php Line 625 in babfba5
pressforward/Core/Admin/PFTemplater.php Line 892 in babfba5
pressforward/Controllers/PF_Readability.php Line 369 in babfba5
See #888, which I think is the same issue. I'm not 100% sure what this embed call is supposed to do - see a79f70d for a description in the commit message - but at the very least, the |
We do this by removing the `src` attributes from image tags when building Reader markup, stashing the URLs in a `data-src` attribute. Then, when the modal is opened, we swap the `src` attributes back in. This dramatically improves Reader performance when loading a list of items that contains many images, especially those that are loaded from servers with latency issues. See #1114, #1054.
… non-embeddable URLs. A feature was added in a79f70d that enabled an oEmbed-powered preview if the nominated/feed URL was an oEmbed-capable URL (as in, say, a YouTube URL). But the implementation was written in such a way that *all* submitted item URLs were checked for oEmbed periodically. Generally, this is not necessary: we can prescreen by checking against WP's list of registered handlers. See #1054. See #888.
|
Since roughly version 5.2.0, we've made a number of changes that have had a huge effect on All Content/Nominated load time:
Both All Content and Nominated load in 1-2 seconds, while previously they took from 10-30 seconds. As such, I'm going to mark this ticket complete. Further refinements will be handled in separate tickets. |




Just an FYI on my own testing. I installed on localhost and then left it alone for about four weeks. When I came to view the admin area again the load time was painfully slow. Taking minutes to reach the loading bar after which things shuffled along at a slow but acceptable pace.
My guess was that it used the call to load the admin area to run background tasks. However, there was still a substantial delay on the next viewing of the admin area.
I profiled load time with Chrome:
Overview: Finish 2.9 min; DomContentLoaded 52.26s; Load: 52.55s
The text was updated successfully, but these errors were encountered: