craftcms / craftcms/cms

[5.0.0]: Multiple console warnings when navigating element indexes

Open
#14,713 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
PHP
Stars
3.6k
Forks
705
Avg merge
1d 5h
Merged PRs (30d)
134

Description

What happened?
Description

When navigating element indexes, there are multiple warnings in the console. These are of two kinds:

  1. [Violation] Forced reflow while executing JavaScript took <N>ms
  2. [Violation] 'requestAnimationFrame' handler took <N>ms

Also, I'm not sure if this is related, but the loading of sources with many entries is somewhat slower than Craft 4.

Craft CMS version

5.0.0

PHP version

8.3.2

Operating system and version

Linux 5.15.146.1-microsoft-standard-WSL2

Database type and version

MySQL 8.0.33

Image driver and version

No response

Installed plugins and versions

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the console warnings while navigating element indexes in Craft CMS 5.0.0, including with sources containing many entries, and compare the behavior with Craft 4. No source files or tests are identified in the report; done means identifying and fixing the forced reflow/requestAnimationFrame warnings without regressing navigation performance.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, php
Domain
frontend, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.