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

Dynamically import ChartIQ #545

Merged
merged 14 commits into from
Oct 18, 2018
Merged

Conversation

bruce-binary
Copy link
Contributor

@bruce-binary bruce-binary commented Oct 9, 2018

This PR proposes to have SmartCharts split into multiple chunks:

                                             Asset      Size  Chunks                    Chunk Names
                                   smartcharts.css   121 KiB       0  [emitted]         main
                                    smartcharts.js   655 KiB       0  [emitted]  [big]  main
                     chartiq-cddfce.smartcharts.js   733 KiB       1  [emitted]  [big]  chartiq
    resize-observer-polyfill-9d233c.smartcharts.js  7.57 KiB       2  [emitted]         resize-observer-polyfill
                 html2canvas-b441ce.smartcharts.js   162 KiB       3  [emitted]         html2canvas

Hashes are added to chunks; this ensures the chunks get updated when its contents are changed.

Some refactoring is necessary to allow ChartIQ to be loaded later on during runtime (inside init).

With this, setup instructions change: https://github.com/brucebinary/SmartCharts/tree/chunk-chartiq#quick-start

Because of breaking changes, I propose in this PR to update to v0.3.0.

@bruce-binary bruce-binary force-pushed the chunk-chartiq branch 2 times, most recently from f2f629f to cb283c3 Compare October 9, 2018 09:20
* dev:
  bug fix: newer version of react-transition-group does not have uncompressed version
  tweaks and upgrades
  unfortunately nyan reporter doesn't display nicely in travis ):
  Load active symbols before trading times, destroy only if not undefined, and eslint tweaks
  bug fix: sticky header doesn't update when clicking on filter
  cleanup and rolleback prev code
  cleanup
  Remove category dialog sticky header
  add animatioin for sticky dialog on mobile
  Bugfix && refactor
  tweak why-did-you-update
  Refactor
  Avoid react re-rendering

# Conflicts:
#	app/index.jsx
#	src/store/ChartStore.js
#	yarn.lock
@bruce-binary bruce-binary changed the title [WIP] Dynamically import ChartIQ Dynamically import ChartIQ Oct 17, 2018
@bruce-binary bruce-binary merged commit 4198b6d into deriv-com:dev Oct 18, 2018
@bruce-binary bruce-binary deleted the chunk-chartiq branch October 18, 2018 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant