I understand DD4T setups add Experience Manager (XPM) markup (page bootstrap, Component Presentation markers, and field details) in the MVC Web Application. JSP views might reference an <xpm:>
tag that is converted to XPM markup.
My architect on a client project (DD4T Java) is asking if we could improve rendering performance by not having rendering this markup in XPM.
The idea would be adding these details on Publish (Tridion template) rather than during rendering (in Content Delivery), similar to the SiteEdit Template Building Block, which detects the publishing environment and renders XPM markup accordingly.
But with Tridion publishing JSON independent of the HTML layout, I'm not sure this would fit within DD4T.
Any suggestions? How do you improve performance for DD4T rendering with XPM tags?