简体   繁体   中英

Decrease load time of an Polymer 1.X app

I have a Polymer application, and I would like to find the easiest possible path to decrease load times.

The app is online (although it's TOTALLY unfinished): http://www.entertainers.biz/

At the moment, load times are geological .

I tried polymer build , but only got marginal improvements. The problem is that fetching the app is 219 request (two hundred and nine-teen!).

Ideally, I would turn the two main files (my-main.html and my-app.html) into something static. I experimented with vulcanize, and when I tried to vulcanize one or the other, the whole thing basically stopped working.

Another approach would be to create a file that includes everything needed by my-app and my-main in terms of imports (and just those), and then include the vulcanised version of those, so that those become one call (of around 1Mb).

Am I missing something totally obvious?

事实证明,我遇到的问题是由https://github.com/Polymer/polymer-cli/issues/444引起的

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