-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
polymer-project.org is slow #426
Comments
It looks like there are a couple of requests that can be eliminated:
Notes on the vulcanized import:
I've also noticed that the 'unresolved' attribute is on body. This is optional and something we may want to consider not doing for this use case. |
I've made some updates that should speed reduce user perceived latency. Namely:
http://ajaxify.polymer-project.appspot.com/ Please test and file bugs against the docs repo. Using Canary with the flag on is still your best friend :) |
ajaxify.polymerproject is way better. On a warm cache with Canary and the flags, a page switch is down to 0.62s. |
Closing this now that the There are a few more optimizations to make (reduce 1-2 requests, inline more), but the 1-2s whitescreen on page loads is gone. Page transitions are also faster. |
Recognizing that you probably haven't optimized anything yet, I measured the time to click a link from http://www.polymer-project.org/docs/start/everything.html to http://www.polymer-project.org/docs/start/customelements.html on Chrome 35.0.1849.0 (Official Build 252207) canary with
--enable-experimental-web-platform-features
--enable-html-imports
--js-flags=--harmony
, with a warm cache.The load took 2.86s to finish rendering, which seems too slow for a basically static web page.
I measured the click event at 4.18s, the request for customelements.html at 4.19s, the receipt of its 304 response at 4.34s. Evaluating platform.js took 37ms at 4.50s. Evaluating polymer.js took 6ms at 4.82s. platform.js took another 30ms at 4.93s. polymer-ui-tabs.html finished loading at 5.22s, polymer-body.html at 5.23s, and DomContentLoaded fired at 5.35s.
There's a 356ms block labeled "Animation Frame Fired", which appears to include a lot of template binding. Then the first paint is at 5.78s. polymer.html finishes loading at 5.84s, followed by a couple other polymer elements. polymer.js finishes loading at 6.04s. The load event comes in at 6.43s, followed by the second occurrence of "Finish loading" for polymer-body.html at 6.44. polymer-selection.html finishes at 6.61s. There are "Event (load)" marks at 5.87s, 6.43s, 6.49s, 6.61s, 6.76s, and 6.83s. polymer-ui-tabs.css finishes loading at 7.03s followed by the final Composite Layers at 7.04s.
The text was updated successfully, but these errors were encountered: