简体   繁体   中英

Vulcanize local Polymer app

We use Polymer to build a local app . Each Polymer element has a .html and .css (compiled from .scss ) file.

Does the use of vulcanize (it concatenates the JS and Polymer elements into one file) provide an advantage? Does the use of some minify tool after vulcanize provide any advantage?

Once again, it is a local (only) app so I mostly care about performance and speed .

You can use chrome browser developer tools (acess via menu) and compare application load speed for plain, vulcanized, minified versions or combinations of them. Then decide which bests suits your needs.

From Concatenating Web Components With Vulcanize .

The short answer is “don't guess it, test it”. There is always a trade-off when it comes to concatenation but tools like WebPageTest can be useful for determining what your true bottlenecks are.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM