Answered by:
reduce asp.net automatic javascript files (SEO problem)

Question
-
User-957428673 posted
hi
I have created a website (web forms) using ASP.NET
when I test SEO score i got critical alarm because my website uses a lot of javascript files ...
Actually I am using only two files but when I viewed the source page I found thisI know that this is automatically generated by ASP.NET complier
my question isIs there anyway to tell complier to reduce or merge those files ?
Wednesday, April 22, 2020 9:55 PM
Answers
-
User409696431 posted
ScriptResource.axd is for ASP.NET AJAX control toolkit.
Script bundling is handled differently depending what version you are using. See https://github.com/DevExpress/AjaxControlToolkit/wiki/Upgrading-from-v7.x-and-below
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, April 23, 2020 2:42 AM -
User288213138 posted
Hi eng_ahmed_taha,
Is there anyway to tell complier to reduce or merge those files ?A batch of ScriptResource.axd requests like that are usually due to ASP.NET controls registering includes to the scripts that they're dependent on, especially scripts for the ASP.NET AJAX Control Toolkit controls.
If you want to merge those files without breaking your site, look into the ScriptManager's ability to combine multiple scripts into a single payload
Combining Client Scripts into a Composite Script
Hope this can help you.
Best regards,
Sam
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, April 23, 2020 3:26 AM
All replies
-
User409696431 posted
ScriptResource.axd is for ASP.NET AJAX control toolkit.
Script bundling is handled differently depending what version you are using. See https://github.com/DevExpress/AjaxControlToolkit/wiki/Upgrading-from-v7.x-and-below
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, April 23, 2020 2:42 AM -
User288213138 posted
Hi eng_ahmed_taha,
Is there anyway to tell complier to reduce or merge those files ?A batch of ScriptResource.axd requests like that are usually due to ASP.NET controls registering includes to the scripts that they're dependent on, especially scripts for the ASP.NET AJAX Control Toolkit controls.
If you want to merge those files without breaking your site, look into the ScriptManager's ability to combine multiple scripts into a single payload
Combining Client Scripts into a Composite Script
Hope this can help you.
Best regards,
Sam
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Thursday, April 23, 2020 3:26 AM -
User-957428673 posted
I removed AJAX control toolkit from the first page ... its ok now
THANK YOU;Thursday, April 23, 2020 6:16 AM