Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ebay-line-chart: highcharts.js and accessibility.js are loaded in after the component mounts #2305

Open
lorenzolevy opened this issue Oct 25, 2024 · 0 comments

Comments

@lorenzolevy
Copy link
Contributor

lorenzolevy commented Oct 25, 2024

Bug Report

eBayUI Version: 14.3.0

Description

Currently, if ebay-line-chart is loaded asynchronously, the component will mount and display an empty screen while it retrieves highcharts.js and accessibility.js. After those requests have been retrieved and run (self invoking), the chart will end up rendering as expected. The result is an awkward UX where the chart shifts layout after the necessary scripts are loaded in.

In order to load and initialize the scripts before the chart has loaded in, we should consider loading these resources before the component mounts. This could possibly be achieved through browser.json async loading.

Workaround

N/A

Screenshots

Screenshot 2024-10-25 at 3 04 59 PM
@lorenzolevy lorenzolevy changed the title ebay-line-chart: It is currently not possible remove files from the CDN lgoic for custom loading solutions ebay-line-chart: Highcharts and dependencies for rendering are not loaded asynchronously Oct 25, 2024
@lorenzolevy lorenzolevy changed the title ebay-line-chart: Highcharts and dependencies for rendering are not loaded asynchronously ebay-line-chart: highcharts.js and accessibility.js are loaded in after the component mounts Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants