Re: [whatwg] Criticism of pushState (was Global Script proposal)

2009-09-08 Thread Dimitri Glazkov
On Mon, Sep 7, 2009 at 4:40 PM, Justin Lebarjustin.le...@gmail.com wrote: Dimitri Glazkov wrote: But more to the point, I think globalScript is a good replacement for the pushState additions to the History spec. I'm not sure I agree. pushState lets you change the URI very quickly, without

Re: [whatwg] Criticism of pushState (was Global Script proposal)

2009-09-08 Thread Justin Lebar
To be clear, I'm not suggesting that pushState obviates the need for global script. My point is that pushState is useful in its own right, with our without global script. Without pushstate, you can't make a non-hash navigation without hitting the network. Even if you're clever and store all of

Re: [whatwg] Criticism of pushState (was Global Script proposal)

2009-09-08 Thread Dimitri Glazkov
On Tue, Sep 8, 2009 at 9:21 AM, Justin Lebarjustin.le...@gmail.com wrote: To be clear, I'm not suggesting that pushState obviates the need for global script.  My point is that pushState is useful in its own right, with our without global script. Without pushstate, you can't make a non-hash

[whatwg] Criticism of pushState (was Global Script proposal)

2009-09-07 Thread Justin Lebar
Dimitri Glazkov wrote: But more to the point, I think globalScript is a good replacement for the pushState additions to the History spec. I'm not sure I agree.  pushState lets you change the URI very quickly, without doing any kind of navigation at all.  To emulate a pushSate with

Re: [whatwg] Criticism of pushState (was Global Script proposal)

2009-09-07 Thread イアンフェッティ
PushState is also useful for e.g. making sure that the referer header contains useful information. Not to say that there aren't other ways to accomplish that, but it is one thing that Global Context won't give you. 2009/9/7 Justin Lebar justin.le...@gmail.com Dimitri Glazkov wrote: But more