Results 1 to 8 of 8

Thread: Application Performance in jquery html

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Aug 2019
    Posts
    28

    Application Performance in jquery html

    i have application which is built on below

    Jquery /HTML/MVC
    Mdboot strap
    MVC
    visual studio 2015

    where HTML is using Massive ,hell of html code span ,div which get very slow in performance ,loading etc

    PLEASE suggest a way for increasing performance of my application .please note down i do not want to switch angular or other framework .i want to remain in current tools and tech mentioned above

    Thanks

  2. #2
    Superbly Moderated NeedSomeAnswers's Avatar
    Join Date
    Jun 2002
    Location
    Manchester uk
    Posts
    2,660

    Re: Application Performance in jquery html

    There is nothing inherently slow in the technology your using, i use the same dev stack in a number of projects and have no speed problems.

    Can you post some code for one of the areas which is performing badly?

    also are you sure its the HTML rather than the data loading slowly or some other JavaScript issue? what testing have you done ?
    Please Mark your Thread "Resolved", if the query is solved & Rate those who have helped you



  3. #3

    Thread Starter
    Junior Member
    Join Date
    Aug 2019
    Posts
    28

    Re: Application Performance in jquery html

    page is loading very slowly ,div showing after significant time ,menu loading late

  4. #4
    Superbly Moderated NeedSomeAnswers's Avatar
    Join Date
    Jun 2002
    Location
    Manchester uk
    Posts
    2,660

    Re: Application Performance in jquery html

    So.............................

    that means nothing it doesnt tell me what is causing the slowness. As requested in the previous post can you post your code of one of the areas which is performing badly so we can take a look and maybe come up with some idea of how to fix it?
    Please Mark your Thread "Resolved", if the query is solved & Rate those who have helped you



  5. #5
    PowerPoster PlausiblyDamp's Avatar
    Join Date
    Dec 2016
    Location
    Pontypool, Wales
    Posts
    2,458

    Re: Application Performance in jquery html

    Quote Originally Posted by erum_mirza View Post
    page is loading very slowly ,div showing after significant time ,menu loading late
    Have you tried using something like your browsers developer tools, e.g. F12 in chrome and seeing if it can at least identify where there may be performance issues.

  6. #6
    Smooth Moperator techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,532

    Re: Application Performance in jquery html

    If I had to guess (which in this case, given the derth of details, I do), I'd say he's got a singlke page app (SPA) that's so massive and complicated that it chunks when it loads into the client. It's probably the kind of thing that would benefit from a complete retooling that he seems to be against.

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  7. #7
    Member
    Join Date
    Jul 2019
    Location
    Ahmedabad
    Posts
    57

    Re: Application Performance in jquery html

    Please try this code, To Application Performance in jquery HTML.

    Code:
    $('#item').css ('color', '#123456');
    $('#item').html ('hello');
    $('#item').css ('background-color', '#ffffff');
     
    
    $('#item').css ('color', '#123456').html ('hello').css ('background-color', '#ffffff');
     
    
    var item = $('#item');
    item.css ('color', '#123456');
    item.html ('hello');
    item.css ('background-color', '#ffffff');
     
     
    
    console.time('no cache');
    for (var i=0; i<1000; i++) {
        $('#list').append (i);
    }
    console.timeEnd('no cache');
     
    
    console.time('cache');
    var item = $('#list');
     
    for (var i=0; i<1000; i++) {
        item.append (i);
    }
    console.timeEnd('cache');
    I hope this code will be useful to you.
    Thank you.
    < advertising removed by moderator >

  8. #8
    Banned
    Join Date
    Jan 2021
    Location
    USA
    Posts
    25

    Re: Application Performance in jquery html

    Top ways to Instantly Increase Your jQuery Performance
    1. Use the Latest Version. jQuery is in constant development and improvement.
    2. Combine and Minify Your Scripts
    3. Use For Instead of Each
    4. Use IDs Instead of Classes
    5. Give your Selectors a Context
    6. Cache
    7. Avoid DOM Manipulation
    8. No String concat(); Use join() for Longer Strings.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width