GWD removing commented out scripts etc in head

54 views
Skip to first unread message

Chris Howard

unread,
Oct 23, 2017, 2:38:25 AM10/23/17
to Google Web Designer beta
Hi all,

I have been trying to setup a file for multiple outputs.

The problem is I wanted to comment out the areas and add them back in as necessary in the code view.

For example adding in the script for Sizmek's platform "<script type="text/javascript" src="https://secure-ds.serving-sys.com/BurstingScript/EBLoader.js"></script>" but as the below so it is not active.


...
<!--<script type="text/javascript" src="https://secure-ds.serving-sys.com/BurstingScript/EBLoader.js"></script>-->
</head>

The issue is once you save the file and reopen in GWD it has completely removed the comments and everything inside them.

Has anyone else experienced this issue and/or knows how to resolve it or is it simply not possible using GWD?

Any information or help is greatly appreciated.

Thanks,
Chris

Kent Myers

unread,
Oct 23, 2017, 11:10:09 AM10/23/17
to Google Web Designer beta
Sorry, removing comments in the HTML & CSS is the intended behavior.
Maybe you could rewrite your scripts to make the changes there, as comments in the javascript will be respected.

Hope that helps,

Kent
Google Web Designer team
 
Reply all
Reply to author
Forward
0 new messages