public static void RegisterBundles(BundleCollection bundles) {
---------------------------------- bundles.Add(new ScriptBundle("~/Scripts").Include( "~/Scripts/ej.web.all.min.js", "~/Scripts/ej.unobtrusive.min.js")); bundles.Add(new StyleBundle("~/Themes").Include( "~/Themes/default-theme/ej.widgets.all.min.css")); |
Please refer to the following code example.
[ej.widgets.all.min.css] @import url("../ej.widgets.core.min.css"); @import url("ej.theme.min.css"); bundles.Add(new StyleBundle("~/Content/css").Include( ... "~/ejThemes/ej.widgets.core.min.css", "~/ejThemes/default-theme/ej.theme.min.css", ... ); |
In other way, if you need to refer “ej.widgets.all.min.css” file, then it add as a separate bundle by applying a CssRewriteUrlTransformation in it. Please refer to the following code example.
bundles.Add(new StyleBundle("~/Content/ej").Include( "~/ejThemes/default-theme/ej.widgets.all.min.css", new CssRewriteUrlTransform() )); |
Regards,
Prasanna Kumar N.S.V
Hi, I have an issue where the loading very slow, or in shared web hosting, if there are 10 to 20 users looking at a grid with data, I get memory exception errors. You can also see this in VS 2015 application insights view.
The files are large and since the widgets.all is very large, how do I bundle conditionally to include only Grid or schedule based on what controls there are on the page. for e.g. can I control the bundling in the child or partial views on which scripts load.
thanks
Also include the following scripts
<link rel='nofollow' href="Style/ej.widget.default-theme.min.css" rel="stylesheet" /> <script src="scripts/jquery-1.10.2.min.js">script> |