After today's excellent AJAX webinar, I started trying out some of the tools. I have some complex pages in terms of numbers of components, so I was interested in the recommendations of the Firefox addin Yslow. (Although with V9 it actually seems quite snappy, I guess you can never be too fast)
The top recommendation was to reduce the number of js libraries and external CSS sheets, so I looked at the page source and saw this:
It looks like every component on the page is loading a copy of the stylesheet and a copy of the core.js library.Is this unnecessary overhead? Can this somehow be reduced to a single instance of each?Pat
The top recommendation was to reduce the number of js libraries and external CSS sheets, so I looked at the page source and saw this:
Code:
<!doctype html public "-//w3c//dtd html 4.01 transitional//en" "http://www.w3.org/tr/html4/loose.dtd"> <html><head> <script type="text/javascript" src="javascript/core.js"></script> <script type="text/javascript" language="javascript"> <!--function Menu_select_Init(){};$e.add(window,'load',Menu_select_Init);//--></script> <link rel="stylesheet" type="text/css" href="css/orca/style.css"> <link rel="stylesheet" type="text/css" href="css/orca/components/a5SimpleForm/style.css"> <script type="text/javascript" src="javascript/core.js"></script> <script type="text/javascript" language="javascript"> <!--function Menu_Add_Init(){};$e.add(window,'load',Menu_Add_Init);//--></script> <link rel="stylesheet" type="text/css" href="css/orca/style.css"> <link rel="stylesheet" type="text/css" href="css/orca/components/a5SimpleForm/style.css"> <script type="text/javascript" src="javascript/core.js"></script> <script type="text/javascript" language="javascript"> <!--function Categories_Init(){};$e.add(window,'load',Categories_Init);//--></script> <link rel="stylesheet" type="text/css" href="css/orca/style.css"> <link rel="stylesheet" type="text/css" href="css/orca/components/a5SimpleForm/style.css"> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <meta name="generator" content="Alpha Five HTML Editor Version 8 Build 1980-3163"> <title>Add Edit Menu</title> <link href="css/orca/orcacss.css" rel="stylesheet" type="text/css" /></head>
Comment