question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

investigate ways to load additional data on demand

See original GitHub issue

Coming from #3524.

xterm.js currently has no way to load additional data on demand in the core. We are at “either it is there prebundled - or forget it”.

We should investigate, how we can externalize rarely used (blob) data into additional resources, that can be requested on demand. Ideally things cover these aspects:

  • easy to use in code
  • either works transparently with TS’ import statement, or does not interfere negatively
  • keep working for CJS/ESM
  • keeps working in nodejs and browser context
  • support proper electron bundling
  • keep working with common web bundlers (webpack, Rollup, parcel …)

Sidenote: JSON imports are working for most above, but not all - like ESM currently cannot handle it. A workaround to that might be to use the ESM import() function at code level with real JS modules (JSON data written to proper code units). Needs investigation…

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
Eugenycommented, Nov 11, 2021

IMO dynimport looks good, but users should be able to override the implementation.

Points to consider:

  • Path format passed to dynimport()
  • Whether two separate builds (with statically bundled resources and without) are necessary
  • Fallback in case a user chooses not to provide the JSON files at all (i.e. disable named color support in #3524)
  • If JS imports are coming in the future, whether we have to mandate the packaging format for these
0reactions
jerchcommented, Nov 16, 2021

Out of scope, thus closing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Data Collection Methods - Jotform
Observation involves collecting information without asking questions. This method is more subjective, as it requires the researcher, or observer ...
Read more >
Inventory Forecasting: Types, Best Practices, and Benefits
Forecasting for seasonal products: Historic demand data and sales figures help account for seasonality. Consider other factors, such as ...
Read more >
Digitalisation, energy and data demand: The impact of Internet ...
Conceptualised in this way, there are several ways to investigate the processes that underpin growing data demand, and hence infrastructural energy demand.
Read more >
Demand Forecasting - ShipBob
Learn how to forecast demand and predict future sales so you can make good decisions about production, marketing spend, staffing, and more.
Read more >
Investigating the on-demand service characteristics
The purpose of this paper is to study the characteristics of a range of on-demand services in order to better understand the meaning...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found