Mr Roiter, you just have to throw that out there to get me out of hiding. Regarding &script=1, this little thing stopped working in CMS 9 SP1 and MS 10 SP1, then started working after MS 10 SP2 HF X. Due to the instability of the functionality, us at OpenText consulting services stopped using it all together.
Besides, it is no longer a best practice to manage JavaScript files as page instances because each time a page loads, it has to load the JavaScript references, which are also pages in CMS. Generating pages via page builder is resource intensive. For every page view (smartedit, page preview), many other supporting pages has to be generated. Best practice since CMS 9, if it is just plain code with no need to reference any content (images, swf, or anything from assetmanager), store that in a file folder (folder type in Managment Server), and include it via media placeholder. Anyways, back to the thread's question. I think Joel is referencing the JavaScripts in an external repository. On Tuesday, April 2, 2013 4:16:00 AM UTC-4, Wolfgang Roiter wrote: > > try adding "&script=1" to your javascript code: > <script type="text/javascript" language="javascript" src="<%anc_js%>* > <!IoRangeRedDotMode>&script=1<!/IoRangeRedDotMode>*"></script> > > on the other hand you should think about not including stuff like that in > SmartEdit, because you won't need social media and maps in SmartEdit mode > usually. > instead of that you could print a hint for the editors like "<<< Google > maps is only visible in publish and preview mode >>>". > this would save (at least some) rendering time on page load. > -- You received this message because you are subscribed to the Google Groups "RedDot CMS Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to reddot-cms-users+unsubscr...@googlegroups.com. To post to this group, send email to reddot-cms-users@googlegroups.com. Visit this group at http://groups.google.com/group/reddot-cms-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.