Comments (2)
I agree with the appropriate. 2 is the big one that simplifies things quit a bit. It means we dont need special logic at page load time to reconstruct the deep link.
It replicates what polymer-project.org does: https://github.com/Polymer/docs/blob/master/js/app.js#L79
There are two gotchas we ned to watch out for:
-
Vulcanizing polymer elements. If we have separate vulcanized bundles for each page (we should for perf), any shared components used on multiple pages need to be moved to the main page's bundle and excluded from the subpage's vulcanized bundle. Otherwise, when you navigate back to a page, there will be a "x element has already been registered" error.
We'd rely on the URL deduping of imports. For example, it's ok if the main page /app/elements/elements.vulcanized.html gets re-requested on page navigation. It'll be de-duped.
This might be an interesting case for SW modifying responses.
-
IIRC, custom elements in the xhr'd document are not upgraded. This means they won't have their correct prototype yet (e.g. can't access properties/methods). Example: https://github.com/Polymer/docs/blob/master/js/app.js#L137
from ioweb2015.
Fixed by implementing app/scripts/router.js
from ioweb2015.
Related Issues (20)
- [Homepage] Keynote video doesn't go full screen HOT 3
- Polymer video - default video loaded HOT 2
- Dev server failed for https request HOT 4
- Chrome IOS Site not usable
- Update promises polyfill to latest
- Schedule page: IE console errors for cannot call getLocalizedTime of null
- Schedule: page content doesnt slide in on page nav HOT 4
- Notifications: add vibrate option to notifications
- Notifications: record analytics for every showNotification HOT 1
- missing loader.js seems to prevent template rendering? HOT 10
- gulp build-experiment seems to be broken HOT 3
- Future experiement: template.async -> mutation observers
- 2015 recap video HOT 2
- Gulp setup fails HOT 3
- Firefox: Video Play Button "Watch the keynote" Buttons Broken
- Windows capability HOT 3
- gulp serve fails 'Error: `libsass` bindings not found. Try reinstalling `node-sass`?' HOT 4
- Google I/O 2016 Website issue HOT 2
- paper-drawer menu items not showing #194 HOT 1
- Entire website is broken
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ioweb2015.