Using AjaxToolkit (AjaxFrameworkMode="Explicit") to limit unneccessary JS files

I had a previous post on Experts Exchange, asking more generally about optimising the output of the AjaxToolkit.  The solution offered was very helpful and pointed me to: http://lancezhang.wordpress.com/2008/11/15/aspnet-ajax-performance/
This walkthrough appears to cover compression and combination of JS files but does not appear to do anything related to excluding unneeded AJAX modules.

Specifically, I just want to have a page with one textbox, one button and an AJAX AutoComplete extender - but have a minimal download size to suit browsers with slow download speeds.  My current implemention works but has the downside of downloading BarChart / CascadingDropDown / ColorPicker, either as distinct JS files, or as one combined file with a similar overall filesize (about 200KB)

The AjaxFrameworkMode="Explicit" condition appeared to be what I wanted to limit which parts fo the AJAX library are downloaded to the client, but a few tests don't show it having any limiting factor.  Before using it, my client was downloading 82 scripts, after using it, still 82!

My current stage of experimentation is as below.  Analysing what my browser is downloading with Fiddler shows it is requesting all 82 JS files.

I'm using the .net 4.0 framework with the AjaxControlToolkit version 4.1.7.725.
Any idea what I can do to force the page to ONLY download the parts of the toolkit that are needed?

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default2.aspx.vb" Inherits="skeleton_Default" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="act" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
	<title>Test</title>
</head>
<body>
	<form id="form1" runat="server">
		<ajaxToolkit:ToolkitScriptManager ID="AjaxScriptmanager" AjaxFrameworkMode="Explicit" runat="server" CombineScripts="false" ScriptMode="Release" LoadScriptsBeforeUI="false" EnablePartialRendering="false">
			<Scripts>
				<asp:ScriptReference Name="MicrosoftAjax.js" />
				<asp:ScriptReference Name="AutoComplete.AutoCompleteBehavior.js" Assembly="AjaxControlToolkit, Version=4.1.7.725, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e" />
			</Scripts>
		</ajaxToolkit:ToolkitScriptManager>
		<div>
			<asp:TextBox ID="SearchBox" runat="server" />
			<asp:Button ID="SearchButton" Text="Search" runat="server" />
			<act:AutoCompleteExtender ID="tbSearchAutocompleteExtender" runat="server" TargetControlID="SearchBox" ClientIDMode="Static"
				ServicePath="AutoComplete.asmx" ServiceMethod="GetCompletionList" MinimumPrefixLength="1"
				CompletionInterval="1" CompletionSetCount="10"
				FirstRowSelected="false">
			</act:AutoCompleteExtender>
		</div>
	</form>
</body>
</html>

Open in new window

LVL 1
BeamsonAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

guru_samiCommented:
Get the latest version of the toolkit. It introduced something called Control Bundles. Check this for more information: http://stephenwalther.com/archive/2013/07/25/july-2013-release-of-the-ajax-control-toolkit
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
BeamsonAuthor Commented:
Turns out that the version I'm using IS the latest version but what I needed was a pointer towards the Control Bundles area.  Unless you already know it exists, its not easy to find!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
AJAX

From novice to tech pro — start learning today.