Turn off javascipt or style sheet when editing

Permalink
I was wondering if there is a way to add a comment to template files so that certain lines of code are removed when in edit mode for Concrete5. I have found conflicts with Concrete5 in many of my designs but only when in edit more.

Any thoughts? Does this make sense?

 
Mnkras replied on at Permalink Reply
Mnkras
if($c->isEditMode()) {
    //its editmode!
}
if(!$c->isEditMode()) {
    //its not editmode!
}
jimlightanddark replied on at Permalink Reply
Perfect! Thanks so much!