1 / 7

Extreme Optimization

Extreme Optimization. By Matt, Iphia and Daniel. Extreme Optimization.

iden
Download Presentation

Extreme Optimization

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Extreme Optimization By Matt, Iphia and Daniel

  2. Extreme Optimization • This is a mindset that web designers have in which they believe every byte counts. They try to pinch off excess bytes by using minimal amounts of markup so websites can run faster but makes it harder to maintain. A typical website has characters that can be removed without harm however EHO followers believe in the "anything goes" approach.

  3. Techniques Edit the <head> • Use external script files, or leave JavaScripts out of the head and put them lower down in the body nearer the elements they affect. • don’t go overboard on keywords — stick to a few main ones and delete the rest. Use short class names • class=“h1” as opposed to class=“header” • use less defined tags such as <big> as opposed to <span class="large"> • Use short image names • 1.gif as oppose to single_pixel.gif

  4. Techniques con’t Cut out the comments • Know your code well enough so you don’t need them but if it’s important, a few can be useful. • Take out the invisible characters • Tabs, carriage returns and spaces are all invisible and rarely affect how a page is rendered in a browser. • Align across the row • align="right" into each cell in a table row, just put this attribute into the tr tag, and it will apply it across the way. • Shorten URLs

  5. Dangerous Techniques Leaving out the quotes • You could write cellpadding=5 and your browser wouldn’t have a problem. This technique should no longer be used, as the quotation marks are now going to be mandatory in future HTML drafts, including the current XHTML.

  6. Dangerous Techniques con’t Leaving out closing tags • Another optimisation trick that has always caused big problems is people leaving out the closing tags for certain elements — notably <body> and tables. You could close a table without closing all of its internal cells and rows with one </table> and Internet Explorer would let you get away with it. Netscape would not, and your table would not appear. Do not leave out these tags, as your page will not » validate, and so will not work in a lot of browsers. In fact, in XHTML with its stricter rules, all your tags now have to be closed.

  7. Additional Information • http://www.webreference.com/authoring/languages/html/optimize/

More Related