I developed my first Question & Answer web project (ASP.NET MVC).I hosted it in Godady. When i click it first time, the web site loads too slow. Firstly i did something below to increased performance but they are not more effective. Web site is still loading about 20 seconds. What should i do increase performance? Please help.
Web site link --> http://www.annedenalhaberi.com/
- I used bundle config for CDN like
public static void RegisterBundles(BundleCollection bundles)
{
bundles.UseCdn = true;
BundleTable.EnableOptimizations = true;
bundles.Add(new ScriptBundle("~/bundles/jquery", "http://code.jquery.com/jquery-3.2.1.min.js"));
bundles.Add(new ScriptBundle("~/bundles/bootsrap_css", "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"));
bundles.Add(new StyleBundle("~/bundles/bootsrap_js", "https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"));
bundles.Add(new StyleBundle("~/bundles/mystyle_css").Include(
"~/Content/Styles/style.css"));
}
- I put css bundles into head tag and js bundles after the html tag
<html>
<head>
.....
@Styles.Render("~/bundles/bootsrap_css")
@Styles.Render("~/bundles/mystyle_css")
</head>
<body>
......
</body>
</html>
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/bootsrap_js")