leg: don't cache the layout

Only cache the action content because of the flash notice. This costs us an extra
~3ms but is easier to maintain than JQuery magic.

Signed-off-by: diditclear <didyourupgradeclear@gmail.com>