Maybe I’m wrong, but once updated to 8.1 (I’ve updated my old 7.8.1 using the available patches) on the frontend a “Live CSS” div is available even for not logged users.
Its id is “tdw-css-writer” and its title reads “Edit with Live CSS”.
Its display property is obviously set to none, but in the source still appears, IMHO, with no reason.
I haven’t investigated on other not necessary code lines so far.
Could you please give it a check? I’ve searched for info here in the Support Forum, but it seems like nobody noticed it (or maybe didn’t care of such a detail!).
Thank you!
Hi,
That is the Live CSS editing feature that is displayed in the admin bar
– https://www.screencast.com/t/le5Z0stsi
That is available when the tagDiv composer plugin is active. The div you mention, meaning the CSS editor window will display when you click on the Live CSS button
– https://www.screencast.com/t/pqCmw1jk
Thanks
Ciao Simion,
I totally understand what is that div for and I find this feature really useful.
I’m just saying that maybe shouldn’t be there for not logged-in users. Without the admin bar it’s useless (at least) code that makes HTML heavier for no reason (IMHO).
I can see this behavior on you demo page too and on several sites built on Newspaper template as well.. not being logged-in, of course.
Can I simply take off this part of the code or is there any way to disable the feature? what I was asking for is if there’s any reason for this div to appear to anyone.
I still haven’t got the chance to check if there’s anything else in the code we could get rid of to lighten the HTML weight a bit more.
Thanks again!
Hi,
This should not cause such an impact on the performance of the website. There is no option to disable it at the moment, this may change in the future. In following updates more options and settings will be added to the composer.
If you want to remove it try commenting this line of code
– https://www.screencast.com/t/zPpb7Xv5Ig
Thanks
Thank you Simion,
good to know that this behavior may change!
Keep up with your great work,
Ciao