Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jul 2018
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Reduce Javascript size

    https://echrontech.com that is my website when i open my website, it take a too much time. I have checked in tools. It shows reduce javascript. Is it right if yes how to reduce
    Last edited by VIPStephan; Jun 20th, 2019 at 12:21 PM. Reason: removed link

  2. #2
    Master Coder sunfighter's Avatar
    Join Date
    Jan 2011
    Location
    West Des Moines, Iowa
    Posts
    8,119
    Thanks
    37
    Thanked 1,089 Times in 1,085 Posts
    I would start by removing the JS that has the 'stand by logo' and the massive smoke(?) display. Just open on the second screen with an image(non-moving) and see what that does.
    Evolution - The non-random survival of random variants.
    Physics is actually atoms trying to understand themselves.

  3. #3
    Senior Coder deathshadow's Avatar
    Join Date
    Feb 2016
    Location
    Keene, NH
    Posts
    3,562
    Thanks
    5
    Thanked 515 Times in 502 Posts
    ***WARNING*** I'm not going to sugar coat this. If you can't take ACTUAL criticism put forth in frank and honest language, please, just skip reading this altogether!

    1) if you need to make a "loading screen" for your site that doesn't progress or warn that JS is required, there's something HORRIFYINGLY WRONG with your site building practices.

    2) Your "awesome digital experience" is bloated full of pointless animations, meaningless graphics, and hordes of scripting that tells users with accessibility needs to sod off. You have no alternative navigable structure, nothing remotely resembling alternative access... You're lucky this isn't for banking, utilities, healthcare, or gov't, as you'd end up in court sooner or later for said failings.

    3) with all that animation for nothing, massive graphics too big to go on a website, and hordes of images shoehorned into an inaccessible page, OF COURSE it's slow.

    Just on a casual surface inspection it is a laundry list of how NOT to build a website if you want it to load in a decent amount of time, much less be useful and intuitive to visitors. Digging deeper into it's painfully slow pageloads, it's no surprise it takes forever with 7 freaking megabytes and 83 separate files... that 40 of those files are ghosted in by the JS to try and deceive analysis tools, well, just more proof there's too much "JavaScript for NOTHING of value".

    that giant distracting slow loading background movie? FIRST thing that needs to go. Too big to have ANY business on a website. Even Paypal learned this lesson the hard way about a year ago as that type of artsy nonsense just makes your site unusable.

    Next I'd axe ALL those silly slide-in animations and the loading screen. Just let the bloody thing load normally instead of throwing more code at making it slower whilst trying to hide how slow it is.

    You have about a dozen content images and not even 5k of actual content... aka text. That's likely not even 9k of markup's job, making one wonder what you're using 19k for. Just as an entire site rarely has a legitimate reason for its own template (not counting social plugins) to have more than 48k of CSS, whilst your site is wasting over 100k in 3 files (not counting the goofy hard to read webfonts from crazy Goog). You have 380k in 11 files of JavaScript, and that's utterly absurd and wasteful.

    ... and that's before we talk the useless broken sideways side-bar things that suck down screen space that would be better used for content.

    Popping the bonnet to look at the code, it's the typical wreck of those who don't know enough HTML to be building websites. Pointless tags like figure around IMG tags for no good reason, any attempt at semantics is entirely incorrect, endless pointless DIV for nothing, endless pointless classes reeking of presentational markup methodology, lack of lists where appropriate, lists where inappropriate, absolute URI's just pissing away bandwidth for nothing, gibberish to nonsensical use of numbered headings almost as if they were chosen for appearance and not grammatical meaning, static scripting in the markup, tons of pointless META not one legitimate UA gives a flying purple fish about...

    It is entirely typical of what I've come to expect when an artist under the DELUSION that they are a "designer" gets hold of a website. Whoever made that knows nothing of accessibility norms, usability, or limitations of the medium; utterly lacking in any knowledge of what makes a website a website, what websites are for, or any of the underlying engineering concepts that separate design from art. This applies to both code and the visual appearance of it.

    To that end, I would take the ENTIRE site 'round back o' the woodshed with a 30-06, put a round in its brain like Old Yeller, and start over from scratch. There is little if anything I would even THINK about trying to salvage from this.

    Apologies if that's "harsh", but the light of truth and reality often is. Just ask yourself this: How often do you see REAL websites pulling these types of artsy-fartsy stunts? It's been done... Twenty years ago. It was a disaster, and that's why REAL developers with experience don't do this junk now.
    “There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies and the other way is to make it so complicated that there are no obvious deficiencies.” – C.A.R. Hoare, The 1980 ACM Turing Award Lecture
    http://www.cutcodedown.com

  4. #4
    New to the CF scene
    Join Date
    Jan 2018
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You can try using a Java script minifying tool or website. Like Minifier. ORG

    Regards,
    Adrian

  5. #5
    New to the CF scene
    Join Date
    Jul 2019
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by rahulawasti View Post
    https://echrontech.com that is my website when i open my website, it take a too much time. I have checked in tools. It shows reduce javascript. Is it right if yes how to reduce
    use plugin to reduce the javascript it's the easiest way


 

Tags for this Thread

Posting Permissions

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