Bug 1788704

Summary: Performance: OLM icons take too long to load, blocking later pages
Product: OpenShift Container Platform Reporter: Samuel Padgett <spadgett>
Component: Management ConsoleAssignee: Samuel Padgett <spadgett>
Status: CLOSED ERRATA QA Contact: Yadan Pei <yapei>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.3.0CC: aos-bugs, jokerman, yanpzhan
Target Milestone: ---   
Target Release: 4.3.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1788705 (view as bug list) Environment:
Version: 4.4.0-0.ci-2020-01-06-112112 Cluster ID: 59267127-c40a-4dc7-8b7c-b9148db6ce39 Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:71.0) Gecko/20100101 Firefox/71.0
Last Closed: 2020-01-23 11:20:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1788705    

Description Samuel Padgett 2020-01-07 21:00:25 UTC
The OperatorHub subscribe flow is blocked until all images from the catalog load. Since we do code splitting, the request for the JS chunk for the next page is blocked because of the pending image requests. This has also caused timeouts in our OLM integration tests in CI.

Comment 1 Samuel Padgett 2020-01-07 21:05:32 UTC
The fix we made was to lazy load the icons as the user scrolls. Only the icons visible on the page (and some a bit below the fold) are loaded.

Comment 3 Yanping Zhang 2020-01-08 06:25:48 UTC
Checked on OCP 4.3 env with payload 4.3.0-0.nightly-2020-01-07-212456, open OperatorHub page, after about 4 seconds, items are loaded, and when user scrolls down the page, could see item and choose item smoothly. The performance has been enhanced.

Comment 5 errata-xmlrpc 2020-01-23 11:20:00 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:0062