Web Page OptimizationGet Web Design Tips and Tricks on mps-web-design.com. Web Page Optimization topic will increase your understanding on Web Design Tips and Tricks. We at mps-web-design.com only provide news, articles, information in Web Design Tips and Tricks. Web Design Tips and Tricks at mps-web-design.com provides the most up to date news and articles. If you have questions please do not hesitate to contact us.
As the average internet bandwidth rate per computer is raising, more and more webmasters allow themselves to develop complex websites laden with heavy graphic elements. In extreme cases you can find websites that take as much as a few minutes to load their content in your browser. Of course the user will never wait that long for a website to load, and will move on to the next website in his search results. So why are webmasters still developing slow loading bloated websites? Primarily due to a lack of knowledge of simple graphic optimization techniques that will allow them to maintain an attractive website while keeping the page size smaller. How many of you are aware of the fact that a box with rounded corners can be achieved using CSS code only, without the need for any graphic image. Well it is possible! Before those of you familiar with CSS say that it cannot be done for every type of browser and a relatively high level of programming is required, I say that dealing with the most common mistakes web designers make regarding optimization can have simple solutions. Never limit the web designer by placing any restrictions that impact the final outcome. You might make the claim that what a web designer can do with graphic software is impossible to implement by code. I disagree. When the design is finished and you are ready to slice it into small images to be used in the html code, your creativity is been tested. Everything you do at this stage will affect the total page size. If your design contains rounded shapes that overlap each other or areas with color gradients, then you must slice it carefully so the outcome is a small file size. Let's look at what efficient slicing means: 1. Do not make large slices that contain lots of different colors. Use a small number of slices where each slice contains a limited number of colors. 2. Do not make a large slice that contains the same graphic structure. Slice a small portion of it and duplicate it in your code. This is a very common mistake that webmasters/programmers make when dealing with gradient color background. 3. Do not use JPEG file format all the time. In some cases a GIF format will be much smaller in size. A rule of thumb - a slice with high number of colors will be smaller in size using the JPEG format rather than the GIF format, and the opposite is also true. Check each option separately. Every 1KB that you reduce from the image file size will eventually add up to a significant reduction in page size. 4. If you have text on a solid color background, do not slice it at all. Use code to create the background instead. Remember that you can define both the font style and background color of the area using CSS. Advanced Techniques Graphically optimizing a website is more than just knowing how to do image optimizations. There are some advanced techniques that required a high level of programming. CSS2 has much more to offer then CSS does. Although not all browsers have adopted this standard yet you should be ready for when they do. JavaScript also gives you a set of options to create some cool effects without needing to overload the page with Flash. Using limited tools like JavaScript compared to an advanced application like Flash to create the desired effects can be difficult. However think about the outcome. For a onetime effort you can differentiate your website from others. You will have an attractive professional looking website that loads quickly. Back to the Future As PDAs, smart mobile phones and mini laptops are used with wireless internet connections for internet browsing, publishing fast loading web pages will enhance the browsing experience not only for those using wide bandwidth connections but also will make the browsing experience user friendly (or may I say, bandwidth friendly) to the wireless clients.
For those who insist that web design optimization is not necessary because everyone will have high bandwidth connections eventually, I agree up to a point. However, the software companies are creating applications that use more bandwidth because they know it is available for them to use. Get used to writing well optimized web pages because this cat and mouse game will never end, and it is better to learn the rules of the game then it is to be bitten. Firing a function from your browserThe concept is as simple as firing a function from your browser, and it leans on PHP's call_user_func_array. I'm going to outline the concept as I have implemented it. This exact implementation may not work in your case, but perhaps you can adapt it to do so.
if(isset($_GET['f']) && function_exists($_GET['f'])) {
$func = $_GET['f']; // Get function name.
unset($_GET['f']); // Drop function from from get.
// Fire and print function, passing
// remaining GETs as function parameters.
print_r(call_user_func_array($func, $_GET));
exit;
}
In our CMS/Framework, we set up a controller with the code from above to respond at a given URL, for example So, This allows for a quick and dirty test of a given function, and can be done remotely on a live site, if necessary, without touching any files or whatnot. We hide this behind an authorization wall and also clean our parameters before they get to this level, so if you try this, keep these points in mind. Article Index: | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 |
More Articles:1. Gain an edge by viewing your competitors source code Doing business online is alot like the brick and mortar business is, but with alot less steps and hassles,... well kinda anyways. Now there are quite a few advantages to an online business vs a brick and mortar business; like we don't commute, well maybe a 30 second one own the hallway, we don't pay building rent, we don't have employees, while except maybe the virtual ones. But, one advantage that's quite unique online is that we can sorta 'spy' on our competitors a bit more easily. Now don't g… 2. Best Web Design And Free Web Promotion Tips By Steve Hill This article gives free tips on how to find a cheap web designer and free tips on website promotion.Cheap web design services.You do not have to spend thousands of pounds to have an internet prescence. In my opinion you should only have to pay between £50 and £100 to have a website built. The websites at the bottom of this page only cost me £42.50 each! The amount of competition in the internet web design sector means that there are some great deals available.You can find these cheap web desig… 3. Quick Web Site Start-up and Promotion Guide The biggest problem I've always had promoting my web site is keeping myselffocused. After all, what should I be doing? Publishing my own e-zine,placing classified ads, looking for link exchange partners, writingarticles... My head is beginning to spin just from trying to list all thepromotion strategies available today!But when my friend who is just starting her Internet presence asked me,'Milana, what should I do now?', it all became very clear: don't spreadyourself thin. Choose up to 2 ways to… 4. Text Is King! Are you building your website? If so, STOP! Take a look at what you have done so far. How many images do you have? How much text do you have? If your website has more images than text then you could be in trouble. Ask yourself these two questions What are my visitors at my website for? Chances are, your visitors cam to your website to find information on a topic or to answer a question. They probably didn’t come to look at pictures (unless you run a photo gallery). Give your visitors what they … |
||||