We are trying to create lightweight page and we want combine css and javascript to reduce requests.
But we are not using any Ajax on the page.
Aspx page mark-up:
<
html
xmlns
=
"http://www.w3.org/1999/xhtml"
>
<
head
runat
=
"server"
>
<
title
></
title
>
<
telerik:RadStyleSheetManager
id
=
"StyleSheetManager"
runat
=
"server"
>
<
StyleSheets
>
<
telerik:StyleSheetReference
Path
=
"~/Webforms/UI/Mobile/as.mobile.default.theme.min.css"
/>
<
telerik:StyleSheetReference
Path
=
"~/Webforms/UI/Mobile/jquery.mobile.structure-1.0.1.min.css"
/>
</
StyleSheets
>
</
telerik:RadStyleSheetManager
>
</
head
>
<
body
>
<
form
id
=
"form1"
runat
=
"server"
>
<
telerik:RadScriptManager
ID
=
"ScriptManager"
Runat
=
"Server"
ClientIDMode
=
"Static"
EnableScriptCombine
=
"true"
OutputCompression
=
"AutoDetect"
ScriptMode
=
"Release"
AjaxFrameworkMode
=
"Disabled"
EnablePartialRendering
=
"false"
CompositeScript-ScriptMode
=
"Release"
LoadScriptsBeforeUI
=
"false"
>
<
CompositeScript
>
<
Scripts
>
<
asp:ScriptReference
Name
=
"WebForms.js"
Assembly
=
"System.Web"
/>
<
asp:ScriptReference
Name
=
"WebUIValidation.js"
Assembly
=
"System.Web"
/>
<
asp:ScriptReference
Name
=
"jQuery"
/>
</
Scripts
>
</
CompositeScript
>
</
telerik:RadScriptManager
>
</
form
>
</
body
>
</
html
>
So we set AjaxFrameworkMode="Disabled" and added the additional scripts. On load the page give the following error on "Sys.Application.add_load(loadHandler); line":
Uncaught ReferenceError: Sys is not defined
<script type=
"text/javascript"
>
//<![CDATA[
;(
function
() {
function
loadHandler() {
var
hf = $get(
'StyleSheetManager_TSSM'
);
if
(!hf._RSSM_init) { hf._RSSM_init =
true
; hf.value =
''
; }
hf.value +=
';|634643790138684980:20a54711:5489a487'
;
Sys.Application.remove_load(loadHandler);
};
Sys.Application.add_load(loadHandler);
})();
//]]>
</script>
how can we achieve this.
Thank you
Farid