On Sun, Mar 20, 2016 at 3:07 PM, Сёма Мрачный <[email protected]>
wrote:
>
> it was just one way. I've decided to go another one:
> https://github.com/miguelfreitas/twister-html/commit/3e43fdb5946a10e956b3f5c3610ad17d39517dfd
>
>
Works great! Thanks! :-)

There is, of course, room for future improvements: because 'decodeshorturl'
may block, the best thing would be to serialize it together with the dhtget
(which are limited in number of simultaneous requests). Otherwise, multiple
shorturls in timeline will cause the interface to get less responsive.

This may require some surgery in twister_io.js though...



> we use fillElemWithTxt() to apply formatting to elements so now we search
> there for *.link-shortened* elements, disable clicks on them and fetch
> URIs. then we put fetched URIs on all related to them links on document and
> enable clicks.
>

So the link is unclickable until it resolves? Good idea!

Another possibility, perhaps more user friendly, could be opening a dialog
box to inform the user the URL is still being fetched.



>
> btw I suppose we may cache shortened URIs to localStorage.
>
> Yes, good idea.

regards,

Miguel

-- 
You received this message because you are subscribed to the Google Groups 
"twister-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to