Site structure
Version 3.x > Site structure > remove unnecessary javascript View modes: 
User avatar
Member
Member
davidgoss - 8/6/2010 11:00:15 AM
   
remove unnecessary javascript
hi, i'm on 3.1a ecommerce

I am working on improving performance of the site and in particular reducing page weight and HTTP requests. this has caused me to look at the JavaScript files being loaded into my pages by default:

WebResource.axd?....
ScriptResource.axd?.... x 2

As well as the 3 HTTP requests to get them, the scripts add up to 131K in size, so it could be a significant performance increase if I remove them. There's also a bit of inline JavaScript which seems to be doing something with the form tag.

My website works as it should with JavaScript disabled, so I know I can do without these scripts, so I want to ask:

1. What do they do?
2. Are they needed for the CMS interface to function?
3. How can I remove them from my live site?

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 8/20/2010 4:54:13 AM
   
RE:remove unnecessary javascript
Hello,

Regrettably, it's not possible to remove those handlers, since they are: general ASP.NET resource for handling ASP.NET events and requests on life cycle (postbacks, callbacks, etc.) and AJAX toolkit core handler for AJAX stuff, respectively. Therefore, they are bound to the system and are essential for its functionality.

Fortunately, those scripts are loaded just for the first site request and then they stay in browser cache (if they are not modified meantime).

Best regards
Ondrej Vasil