719-286-0751 [email protected]

Magento Admin Performance Optimization, Part 4: The category screen (0.24 s per click)

Magento Admin Performance Optimization, Part 4: The category screen (0.24 s per click)

This is part 4 of our series on what we did for the admin of a B2B store with 67,000 products. On the category screen, every click in the category tree reloaded the whole page, so a merchandiser working down the tree waited again before each category. After our work, clicking from one category to the next no longer reloads the page, and in our recording each click takes 0.24 seconds.

Recording of the Magento 2 category screen after the work: the pointer opens two levels of the category tree, then clicks three subcategories, and a badge shows the time for each click
The category screen after the work, recorded on a test copy of the store on a fast developer workstation. The pointer opens two levels of the tree, then clicks three subcategories; the badge shows the time from each click until the category is shown. Category names are made-up test names, and staff computers will be slower.
Before After
Each click on a category in the tree The whole screen reloads 0.24 s (test copy of the store, fast workstation)

We worked on this store’s admin with our Magento admin optimizer and by going through the store’s extensions and custom code. Clicking another category now switches the form in place, so someone tidying up the tree can keep going without waiting for a reload. The 0.24 seconds (239 ms) is the time from the click until the category is shown, in a recording made on a test copy of the store on a fast developer workstation. It is not a figure from the store’s servers, and staff machines will be slower.

What we optimized

  • Page loads between categories. Each click loaded the whole screen again. A category now opens in the page that is already there.
  • Product counts in the tree. Counting the products under every category held up the tree each time it was drawn.
  • The product list inside each category. It was built on every load, even while its section was closed. It is now built when someone opens it.
  • Working in a long tree. The tree and the category form stay in view next to each other, so nobody scrolls back up after each click.
Do you want a faster Magento admin?
We’ve optimized hundreds of Magento stores. Get in touch and let us know roughly how many products you have, and we’ll let you know the kind of performance improvement you can expect.
Contact us

A few general pointers

  • Time your biggest categories. Large trees and categories holding thousands of products make every load heavier. Time a click three times on a small category and three times on a large one, on a staff computer rather than a developer’s faster machine.
  • Keep index work out of the save. Ask your developer whether indexers are set to “Update by Schedule” with cron running reliably, so saves do not wait on index updates.
  • Plan big moves. Moving a category can mean Magento updates the URLs of everything underneath it, so ask your developer how long a large move takes on your store and do it at a quieter time.

If your merchandisers spend hours working through a large category tree, we would like to hear from you. Send us a short note, and we will tell you plainly what we can do for your category screen.

Do you want a faster Magento admin?
We’ve optimized hundreds of Magento stores. Get in touch and let us know roughly how many products you have, and we’ll let you know the kind of performance improvement you can expect.
Contact us
More in this series: Magento Admin Performance Optimization
What we changed in the Magento admin of a B2B store with 67,000 products, one screen at a time.

  1. Part 1: The orders grid (2.53 s to 0.57 s)
  2. Part 2: The order view page (1.70 s to 0.39 s)
  3. Part 3: Product grid and search (2.32 s to 0.59 s)
  4. Part 4: The category screen (0.24 s per click) (this article)
  5. Part 5: Extensions and background jobs
Install our webapp on your iPhone! Tap and then Add to homescreen.
Share This