Skip to content

[4.x]: Long wait when switching between tabs with lots of data on the page #13852

@jonleverrier

Description

@jonleverrier

What happened?

Description

I have a channel setup with 2 tabs defined in the field layout.

Each tab contains a table field defined with a single row template.

Each table has around 200 rows of data in it. Switching between tabs has become painfully slow. Sometimes a 6-7 second wait between each switch.

I'm using these tables for logging, so the website admins have some visibility over certain types of data in the right context. In hindsight, I might of chosen a different approach.

Steps to reproduce

  1. Create a channel
  2. Define 2 tabs in the field layout
  3. Assign each tab a table field with a one row template
  4. Create an entry in the channel and populate each table field with around 100 - 200 rows of data
  5. Try switching between tabs and notice the lag

Expected behavior

For the switch between tabs to be faster despite there being lots of data within each tab (even if the data loads after)

Actual behavior

Long wait (6-7 seconds) between each tab switch

Craft CMS version

4.5.7

PHP version

8.1

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions