Skip to content
This repository was archived by the owner on Aug 2, 2018. It is now read-only.

Performance compared to webpack? #318

Open
markreg opened this issue Sep 11, 2014 · 6 comments
Open

Performance compared to webpack? #318

markreg opened this issue Sep 11, 2014 · 6 comments

Comments

@markreg
Copy link

markreg commented Sep 11, 2014

How does duo compare to webpack in terms of performance e.g. async-loading, etc.? What is duo recommended for vs. webpack? Thanks!

@matthewmueller
Copy link
Contributor

haven't done benchmarks between the two. I'd love for someone to give that a go if they have a chance.

@markreg
Copy link
Author

markreg commented Sep 12, 2014

Does duo support async module loading or is there a way to manually do it if not?

@sankargorthi
Copy link

@markreg I use a fork of lazyload to achieve async module loading as i lazy load js and css assets with it. An alternative would be great.

@matthewmueller
Copy link
Contributor

@markreg there's no async module loading support right now.

I've worked with both async loading systems (YUI, Head.js, etc.) and bundles. From my experience, async loading introduces more issues than gains. I tend to prefer small, focused bundles for each page. Depends on the app size though too. Facebook, Yahoo, Google all require some form of lazy loading.

Not sure about the webpack integration, but you could also expose the builds and then use something like head.js to load them asynchronously. Duo builds scripts that you can just include on the page, without any additional work.

@markreg
Copy link
Author

markreg commented Sep 12, 2014

So there would be separate duo builds for each url and each js/css asset bundle would be loaded from cache/http when the client router emits a change event?

@ghost
Copy link

ghost commented Jan 28, 2016

Excuse me, but, how webpack and duo can be compared?

First is module bundler, second is package manager.

At first duo should download all dependencies and after webpack processes - separates for production use?

Or I am wrong?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants