Hi Mat

> This is incredibly exciting! I've re-listened to hangout #79 where you
elaborate on the plugin library and some federation ideas.

I'd be keen to discuss it further in future hangouts.

> Out of curiosity, can I ask what makes you choose particularly
windows.postMessage()? In trying to read up a bit, I found this nice
comparison and overview of different techniques and they mention
MessageChannel as better than windows.postMessage() (note quick summary at
bottom of page). MessageChannel can apparently be used in all browsers,
except by default in FF but it can be enabled there alos according to
caniuse.

Ah, I hadn't come across MessageChannel. It does indeed seem to address
issues that I've been experiencing with the postMessage implementation.
Browser support is not bad:

http://caniuse.com/#feat=channel-messaging

But I think the inconvenience of setting up Firefox support may be a
decisive factor against using it at the moment. (Bear in mind that the
primary benefit of MessageChannel is simpler development and less code. In
our case, we can pay the price for using postMessage in the pair of
reusable components that encapsulate it within the TW federation
architecture.

Best wishes

Jeremy.




On Fri, Feb 27, 2015 at 6:33 PM, Mat <matiasg...@gmail.com> wrote:

> On Friday, February 27, 2015 at 9:44:47 AM UTC+1, Jeremy Ruston wrote:
>
>> I've now prototyped an approach that I think can work for these "remote
>> transclusion" scenarios. The prototype takes the form of the new plugin
>> library in 5.1.8. It works by loading the target resource into an IFRAME
>> and then communicating with it via window.postMessage().
>>
>> In 5.1.9 and beyond we'll build out the federation features to do more
>> than just plugin importing.
>>
>
>
> This is incredibly exciting! I've re-listened to hangout #79 where you
> elaborate on the plugin library and some federation ideas. Out of
> curiosity, can I ask what makes you choose particularly
> windows.postMessage()? In trying to read up a bit, I found this nice
> comparison
> <http://webcache.googleusercontent.com/search?q=cache:U_NiVkP6JlEJ:ruslanbes.com/devblog/tag/postmessage/+&cd=1&hl=en&ct=clnk&gl=se>
> and overview of different techniques and they mention MessageChannel as
> better than windows.postMessage() (note quick summary at bottom of page).
> MessageChannel can apparently be used in all browsers, except by default in
> FF but it can be enabled there alos according to caniuse
> <http://caniuse.com/#search=messagech>.
>
> Thank you! I think this will prove revolutionary for TW.
>
> <:-)
>



-- 
Jeremy Ruston
mailto:jeremy.rus...@gmail.com

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to