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.

Can I some hove get the path to chunk for creating preload scripts on the server side?

const chunks = ['output/chunk/path/chunkname.js', ...]
chunks.map(file => <link rel='preload' href={file}' />)

For example https://github.com/jamiebuilds/react-loadable#getbundles P.S. I`m migrating to your loadable-components from react-loadable 👍

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:4
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
gregbergecommented, Aug 13, 2018

@dgieselaar thanks for this! It looks great!

1reaction
dgieselaarcommented, Jun 8, 2018
Read more comments on GitHub >

github_iconTop Results From Across the Web

Link types: preload - HTML: HyperText Markup Language | MDN
The preload value of the <link> element's rel attribute lets you declare fetch requests in the HTML's <head> , specifying resources that ...
Read more >
Preload scripts - SpeedCurve
Link rel=preload is useful for downloading any important resource more quickly, such as stylesheets that contain critical CSS, fonts that are ...
Read more >
Using Preload Scripts - Electron
A preload script contains code that runs before your web page is loaded into the browser window. It has access to both DOM...
Read more >
javascript - Preload script file - Stack Overflow
Are you sure you want to "preload" or just wait until your page is done rendering and then load your big JS script?...
Read more >
Preload: What Is It Good For? - Smashing Magazine
It gives developers the ability to define custom loading logic without suffering the performance penalty that script-based resource loaders ...
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