How to debug a website template which is very slow (client side)?


Tags: javascript,html,css,debugging,profiling

Problem :

A client has purchased a website template and wants me to work with it. However, for whatever reason, the template is very slow and makes the browser hang / slow down, particularly when scrolling down.

The issue is in the client side code (javascript, flash, images, or CSS), and not on the server side.

How can I debug this site to try to determine exactly what is causing the template to be slow?

I've tried adding / removing content but it doesn't seem to help, so I think that it might be linked to the css



Solution :

Use a modern browser, press F-12, clear the cache, open the NETWORK panel and reload the page. This will give you a list of resources, how big the files are and how long they take to transfer and load.

The usual suspect: images over 100K that comprise UI elements. I had a friend make a banner that was 2500px wide, but resized it in the CSS to be 960-wide. It still used the same 350K PNG file.


    CSS Howto..

    show css icon with select icon class selcetbox

    How to use CSS transition effects

    How can I erase a border piece using CSS?

    How to get hyperlinks inside a “pop-up” term reference on mouse-over, and seperate the HTML term from the “pop-up” reference content

    How to replace borders around modal window in Fancybox 2.1.5?

    How to set css @media print styling with jquery

    how to align image and text when floating to image

    How to flatten checkbox using CSS? [duplicate]

    CSS class is missed after jQuery replaceWith. How to fix?

    How to get cropped image with gray/ sepia in my editor.?

    How to fix on Mobile Devices? Custom CSS. (Wordpress)

    How to make one circle inside of another using CSS

    how to center UL in my page?

    How to make the background image responsive

    How to horizontally center align a span inside a div

    How to make div 10% of device screen height css

    How to make the contents of a div not wrap?

    How To Create Full Screen Fixed With Scrolling Background Images

    How to vertically align div containers with CSS?

    How do i put text under an img icon in a menu?

    How to apply zoom transition on label and textbox simultaneously in HTML/CSS?

    How to Detect css style by iPhone/iPad

    Using jquery/JS/CSS how do I append words to a sentence so the sentence is pushed up word by word

    How to align Navbar at bottom of window, but have content under this in CSS?

    Z-stacking CSS 3 Flex boxes : how to overlay DIVs that are flexbox items?

    how to apply two kind of css to one control, one for internet explorer, another for firefox and chrome

    How can div with be controlled with responsiveness

    How to use Font Awesome for checkboxes etc

    Why margin:2.5px does not work? How to solve this problem

    How to change html td background colour through Javascript?