Skip to main content
Participant
December 24, 2008
Question

Disabling live preview by the user

  • December 24, 2008
  • 2 replies
  • 710 views
As live preview inside LR takes some time to reload everytime one of web engine feature is changed, is it possible to create an option in the Engine UI itself to enable or disable live preview?

If the user knows what feature he's changing and would prefer not to wait for live preview to reload, they can just disable this live preview feature themself.
This topic has been closed for replies.

2 replies

Participant
December 27, 2008
Cheers Sean. Thanks for the idea!
Sean McCormack
Community Expert
Community Expert
December 27, 2008
Maybe add a conditional checkbox that removes the live_update.js section? <br /> <br />["nonCSS.live"]=true, <br /> <br />in galleryInfo.lrweb model section. <br /> <br />f:checkbox_row { <br /> title = "Live Update", <br /> bindingValue = "nonCSS.live", <br /> }, <br /> <br />Somewhere in the views, like Site Info or whereever. <br /> <br />Then in the HTML <br /><% if model.nonCSS.live then %> <br />.... Live update code here <br /><% else %><% end %> <br /> <br />Of course if you uncheck the live update code, then the checkbox may do nothing after that, as updating has been disabled and requires a manual reload. <br /> <br />If you're not using Live Update, then you that might be the reason for the slow loading.
Sean McCormack. Author of 'Essential Development 3'. Magazine Writer. Former Official Fuji X-Photographer.