Comments (8)
I wrote about this in the readme.md. the pushState API is a load
of shit IMO, pun intended. But, since some people think its good (usually because they dont understand what the implications of its use are, and because backbone is popular) i guess its worth supporting. I dont feel highly motivated to implement it.
from director.
What don't you like about the History API? It rocks if you use it right. Another strategy is this: have your server map any not found routes to the app's main route and let the client do its thing from there, so if a deep link is bookmarked you're still covered. In that case the main benefit is prettier URLS: /articles/html5
instead of #/articles/html5
, you still have no SEO. But now you've got the option to fill in the blanks on the server with indexable content, here and there, where it makes sense for SEO. Beats using Google's hashbang (/#!/) mess if you ask me.
from director.
I wrote a blog post here (http://blog.nodejitsu.com/single-page-apps-with-nodejs), and i explain some of the reasons why i think that the History API does not rock. Web 1.0 style applications, and APIs that promote them don't get me excited.
Edit: I think /#!/ and pushState API are both poor solutions. Apps dont need SEO, i agree websites do. Does anyone ever deep link to a garage-band
dialog or a photoshop
menu? Client side routing is for building rich UIs.
Edit: that said, if someone had a pull request for this feature and it looked good, i'd probably accept it =)
from director.
Good article with valid points. OSX Lion kinda deep links apps with its new Resume
feature, and opening a file with a program is a similar concept. But anyway, you're probably right. If SEO is your #1 thing you should build a site, with as much app-like goodness as you can progressively add in. I've just been thinking lately that it may be feasible to build a web app (single page app) and later add a server-side runner for the spiders. In the past this would have been way too much work, creating a client side and a server side version of your app. But now that there's Node with jsdom that can run your web app on the server...maybe it's an option? It would be nice to not have to choose between SEO and UX.
from director.
yea, definitely want this feature.
from director.
I just wrote about this topic a bit, with a code sample of how an isomorphic framework could work with routing History API updates and server side deep URL requests. More Thoughts On Frameworks @ solberg.is.
from director.
you're saying you want to make a pull request? go for it ;)
from director.
Pull request is open, duplicated issue
from director.
Related Issues (20)
- webpack exports-loader Error HOT 1
- catch all or redirect HOT 3
- Router not matching empty paths HOT 1
- Refresh current route? HOT 1
- Hashtag and anchors with the same url
- Undefined POST body HOT 1
- Question about options { strict: true }
- parameters extracted from url are always strings
- Why have to bind this in router function?
- Can be compatible with IE browser?Version 8.0 HOT 1
- why has two request when I click a link and this is use director control for route HOT 1
- Find the new maintainer HOT 8
- Clientside use - having to click back twice. HOT 1
- Make parameter optional
- Not compatible with webpack2 HOT 9
- Cannot create property 'value' on string '(begin)'
- Not sure what I'm doing wrong. Node version: 8.1.3.
- can I use director.js in IE7
- can this lib change the url,example,http://www.aaa.home/home.html to http://www.aaa.home/home
- about 'forward'
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 director.