Performance is mediocre according to Google Lighthouse analysis

Open
#5,476 2 comments 1 reaction 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
18/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Tech stack
angular, typescript

Research direction

The issue names no source files or tests; the only concrete starting point is the attached Lighthouse HTML report, which lists the unused JavaScript and CSS and the chained critical requests. Run Lighthouse against a local dspace-angular build to reproduce the 70 score and find which bundles or requests dominate. Done would mean a specific, measured Lighthouse improvement, which the maintainers would need to agree on first.

Written by the indexing model from the issue text.

Description

affects: 10.x affects: 9.x affects: main bug code task help wanted performance / caching

Describe the bug

According to a performance analysis run on sandbox.dspace.org via Google Lighthouse, DSpace only scores 70 out of 100 points. This behavior can also be reproduced on demo.dspace.org and our own institutional DSpace instance. Therefore the performance was already mediocre in DSpace 9 and the reason for the poor performance is not the underlying sandbox server.

Google Lighthouse has several tips on how to resolve this, e.g. reducing unused JavaScript and CSS and avoid chaining critical requests. Please see the attached Lighthouse document for more information and tips.

I am not sure how easy it is to tackle this, nevertheless we wanted to run some performance analysis test during testathon, that's where this bug ticket comes from.

To Reproduce

Steps to reproduce the behavior:

  1. Visit sandbox.dspace.org in Chrome or Chromium
  2. Open developer tools and start a Google Lighthouse analysis

Expected behavior

DSpace should perform well in a performance analysis.

Side notes

DSpace performs well in the accessibility part of the Lighthouse test 🎉 Please ignore the SEO part, the poor ranking stems from the applied robots.txt on the sandbox server.

sandbox.dspace.org-20260408T160850.html

Dominant language
TypeScript
Stars
180
Forks
577
Avg merge
2d 1h
Merged PRs (30d)
100

Getting set up

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.

More from DSpace/dspace-angular

All issues in DSpace/dspace-angular

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.