SAFE browser plugin URL handling / dynamic HTML on client side#37
SAFE browser plugin URL handling / dynamic HTML on client side#37happybeing wants to merge 1 commit intomaidsafe:masterfrom happybeing:master
Conversation
|
@theWebalyst IS this still and active proposal Mark? If so we should try and progress a discussion in the next couple of weeks. |
|
I'm not sure. I think it depends :-) From memory I was trying to ensure that a URL could work along the lines of a dynamic website, for example: I'm not sure if this is what is proposed, but think the existing launcher API might use # instead of ? as in: In which case this causes a SAFE REST request for If I've understood that correctly, this is functionally fine and quite a neat solution. But one of the issues I was concerned about was page load times, particularly on first load. It remains to be seen what the latency is on SAFE network, and therefore how much of an issue this is, but the scheme as I understand it would mean a minimum of two sequential requests which effectively doubles the latency for a page that isn't in the local browser cache. I'm concerned that this will compare poorly with a current dynamic website where the whole URL generates a single request that is responded to by the server. Obviously there are also many websites which load content dynamically (AJAX style) but I don't know enough about all this to know how these might compare. Anyway, my scheme called for the ability to initiate multiple concurrent SAFE REST requests within a single URL, with the response data available in the browser client API (e.g. using promises). Doing this is not very elegant, so if SAFE network latency isn't an issue the '#' scheme would be preferable (simpler to understand and implement). But if latency means that dynamic websites are noticably slow to load I'm concerned about the impact this would have on their usefulness, SAFE adoption and the perception of the project. So, it depends :-) |
|
I see what you mean here Mark. Lets leave this in place for a while longer and wait till we get some real world tests of response times when everyone has vaults in place. We can revisit this then and confirm there is an issue and if so use this as a place to bounce further ideas off of. Is that OK with you? |
|
Yep, makes sense. Can't wait to see the thing fly :-) |
I've been thinking about the plugin support needed for dynamic web apps and the result is this suggestion for how the browser plugin could handle URLs and enable client side scripting of dynamic HTML pages.
Death to the server!
PS The real reason for this PR is:
https://forum.safenetwork.io/t/maidsafe-code-bounty-program/4334/25?u=happybeing