2 people found this helpful
I see the same thing. My guess is that they want to encourage async deployment as the default best practice (A stance with which I happen to agree).
I am also pretty much in agreement with your list of pros and cons.
The point about _satellite.pageBottom() is a little nuanced though. My understanding is that you _could_ write rules that fire when _satellite.pageBottom() is called, but with an asynchronous embed of the header code, you don't have any guarantee that the _satellite object will be in existence by the time that the footer embed is rendered. I can't really think of a reason why you'd call _satellite.pageBottom() outside of its intention as a marker of the bottom of the body being hit, but maybe it will come in handy some day...
It is also my understanding that the Launch library itself is no different if you choose synchronous or asynchronous deployment.
3 people found this helpful
You should not worry about it. Those are deployment instructions, they are not a setting that is connected to how you actually deploy it. And we did recently change it to show async by default (we are encouraging people to make that move), but it's still just instructions.
You have Target on your Cons list, I don't think it belongs there. Launch supports asynchronous deploys of Target. With a little effort outside of Launch you can also do it without any flicker (instructions here).
The Launch Library is the same whether you choose to deploy it sync or async.
Finally, _satellite.pageBottom is essentially just a Direct Call with a special name. And in async deploy scenarios you should not be building rules to fire on Page Bottom since the timing is unknowable and unreliable in async deploys. You can still use it (and if you do, Launch will string things together in their logical order), but the timing will be messed up and it's not recommended.
In regards to Target, Glad to hear that it's not a con as we will be implementing it in a few months. and thanks for the link to the target doc.
So what is the best practice event to use for a General / All Pages Rule with Launch? The new Launch training has a Page Load - Page Bottom event - Which Page Load event would you consider best practice to use when selecting to load asynchronous?
The unsatisfying answer is that it depends on your use cases. On the product team, we use "Library Loaded - Page Top" for all our basic demos.