Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Mobile Site Optimization View modes: 
User avatar
Member
Member
Rene 7 - 8/11/2011 6:41:25 PM
   
Mobile Site Optimization
Dear Kentico,
we are building a mobile version of our website, therefore we are trying to keep each page as small as possible. When we have a look into the source code we can see these files, which are actually quite big:

<script src="/WebResource.axd?d=zXO25La5qWvub0fQoJgakimv_HneSof4MGDUjyBK_OF5Cv8XAxJOpWFGTOSfZtLuD_Y_9p28suT8ynxYgp5iSC43nBM1&t=634439947474032944" type="text/javascript"></script>
<div><input type="hidden" name="lng" id="lng" value="en-AU" />
</div><script type="text/javascript">
//<![CDATA[
//]]>
</script>
<script src="/ScriptResource.axd?d=R0djd0gQym4HID0VX9CMH_1k5f3UIt-Ot52nc_rOJ7w50KjRXj9AzCqD4hOrpAtatldWDKnJXXQ3px__8-gIKh4ycrbfHeGO9lVcpxpAu_tE0GV_vRYbv9JcYMJC5iqZAgvejVDJACExxkXdOLPfnZIQAzw1&t=20d908b5" type="text/javascript"></script>
<script src="/ScriptResource.axd?d=19FKfEHHAWnH6RyzgW9FJY5flQsumYxF-xMbS4YVn9q03arrGgIjJogwxVnMaqTTxhlI2Ze2WDuFGGdG9ctvak0CrBkypKWyA4yK37oKA68fVgdlOAY_34W6qEHuLTyBrs9Vn2gcvfxaUT7RpOVrqF7XNcH115lFxxAYQofeJPIfcbSr0&t=20d908b5" type="text/javascript"></script>

Are they necessary, is there a way of getting rid of them?
Cheers

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 8/12/2011 3:17:09 AM
   
RE:Mobile Site Optimization
Hello,

Actually, those scripts are necessary for the ASP.NET page functionality. Therefore, if you remove them you won't use any postbacks and additional processing.

Best regards
Ondrej Vasil

User avatar
Member
Member
Rene 7 - 8/15/2011 6:11:26 PM
   
RE:Mobile Site Optimization
just a general question about ASP. I come from PHP and Apache, isn't it a bit risky for ASP to rely on Javascript files? Regarding XBrowser problems and in case Javascript is deaktivated?
Thanks,
Rene

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 8/16/2011 8:45:25 AM
   
RE:Mobile Site Optimization
Hello,

In fact ASP.NET uses rather server side scripts when it comes to processing data. Of course, there are JavaScripts which could for instance check BizForm fields, however, there is still the server side validation which prevents from multiple hacking techniques (such as SQL injection, XSS, etc.).

At any rate, we are trying to do our best to keep the security service of Kentico CMS on the highest level. You can take a look at the following security related videos: Devnet - Security videos.

Best regards
Ondrej Vasil