Click here to Skip to main content
15,123,118 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using Bootstrap, jQuery and fusion charts to build graphs in my asp.net pages. It is taking 15 seconds to load the page. 7 seconds for executing queries(using 8 stored procedures) in SQL server and 8 seconds to render the page. Can any one suggest a better solution to reduce the page load timing?

What I have tried:

Is there any tool that load faster? I am looking for a better tool
I am using data table in vb.net to get data from the database like below
Dim dt As New DataTable()
If dbCon.con.State = ConnectionState.Closed Then
    dbCon.con.Open()
End If
Try
    Dim cmd As New SqlCommand("myproceduretogetdata")
    cmd.Connection = dbCon.con
    cmd.CommandType = CommandType.StoredProcedure

    Dim adr As New SqlDataAdapter(cmd)

    adr.Fill(dt)
Catch
Finally
    dbCon.con.Close()
End Try
Posted
Updated 21-Sep-21 23:20pm
v2

1 solution

Based on the information provided, we can only offer generic advice.

Rather than loading the data as part of the page, try to return the page without any data, and then use an AJAX / fetch[^] request to load the data from script.

Use your browser's developer tools to measure the performance of your page load to determine where the bottleneck is. It could simply be that a large amount of data included directly in the page takes a long time to download or parse.

Consider referencing common scripts and CSS from a content delivery network (CDN), particularly if your own site's bandwidth is limited. But make sure you use Subresource Integrity attributes[^] to protect your users against malicious modifications to the resources you're loading from the CDN.
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900