-
Notifications
You must be signed in to change notification settings - Fork 16
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
Revise Animation example #77
Comments
Good point! I agree the animation example should first respond with a complete version before continuing with streaming patched versions. |
Yes, and in general this should be something we talk about in the specification. Different implementations may want to:
The "send current snapshot" case shows up a lot when you aren't using a merge type. (Is there a standard way to specify that a patch is just a copy of the data, and not a patch?) |
Notes from https://braid.org/meeting-3:
|
Comment from
|
Another use-case could be to implement progressive loading of images (like how images used to load over dialup), that don't natively support it. |
Another use-case is animating HTML from the server, rather than the client. So you could have a dynamic web app without Javascript. |
New ideas for examples:
Consensus:
|
A web component that takes a url as an attribute or content, and then braid subscribes to the url, embedding the (svg/txt/html) result into its element would probably work today, allowing for a demo repo to be cited. This would offer some really interesting nesting options for dynamically updating websites. There could be a json or parser variant of it too, where you tell it which json var in the response to embed, or give it a parser function. |
The closest example I can think of to the image while avoiding which image format complexity and logistics, would be the same example but for css stylesheet link hrefs |
I've updated the example with an initial snapshot in 7589df1. |
More discussion here: #94 (comment)
|
Reading the paper I had two questions about the animation example:
https://datatracker.ietf.org/doc/html/draft-toomim-httpbis-braid-http-02#section-5.1
https://github.com/braid-work/braid-spec/blob/bf179d8c84ea48b5cb1ea4faf23c6ea9bfc28416/draft-toomim-httpbis-braid-http-03.txt#L580-L608
That the paper on IETF should use PNG or JPEG as GIF has native animation built into it, so it conflates the purpose of the feature. I can see however the github version uses PNG, so good work there.
How come the example responds with only subsequent data (patches to ranges), and not initial data (the whole data for the latest server-side version). Shouldn't it behave like https://github.com/braid-work/braid-spec/blob/bf179d8c84ea48b5cb1ea4faf23c6ea9bfc28416/draft-toomim-httpbis-braid-http-03.txt#L406-L472 which does respond with the initial data, and the subsequent data. As doing
<img src="/animated-braid.png"/>
doesn't seem valuable if it is fetching changes without any initial data to base those changes on. Otherwise, the example should have aVersion
header in the request to indicate why initial data is not being returned.The text was updated successfully, but these errors were encountered: