Archive for the ‘HTML’ Category

Javascript optimization tips

Posted: February 8, 2015 in General, HTML, PHP, Technology
Tags: ,

1. Minify Script Files: – Compacting JavaScript code can save many bytes of data and speed up downloading, parsing, and execution time. There are many compression tools available in market. Even you can write own small script to minify java script, you just need to rename variable/remove extra space etc.

2. Use advantage of reference types: – JavaScript, much like other C-based languages, has both primitive and reference value types. Primitive types such as strings, Booleans and integers are copied whenever they are passed into a new function; however reference types such as arrays, objects and dates are passed only as a light-weight reference. You can use this to get the most performance out of recursive functions, such as by passing a DOM node reference recursively to minimize DOM traversal, or by passing a reference parameter into a function that executes within an iteration. Also, remember that comparing object references is far more efficient than comparing strings.
(more…)

Advertisements

New Tags In HTML 5.0

Posted: June 6, 2011 in HTML

I collected some of tag which is newly added in HTML5 and some of tag is deprecated, Please find below.

Since these tags are still not recommended by W3C    🙂

New tags in HTML5.

Tag

Description

<article> Defines an article
<aside> Defines content aside from the page content
<audio> Defines sound content
<canvas> Defines graphics
<command> Defines a command button
<datalist> Defines a dropdown list   (more…)

Common Tips Speed up Website

Posted: September 2, 2010 in HTML

While more and more people are getting access to high speed internet, there are many left on dial up. Be kind to those visitors and do a few, simple things to speed up your webpages. Not only will these tips give you a faster load time, most will also help keep your bandwidth fees low as well! As per search engine optimization our site should be load faster.

Use External Scripts

Use the same script on multiple pages? Switch to an external script. I’m not talking about remotely hosted, I mean loading javascript files from one source instead of adding all that code to each of your pages like this:

<script type=”text/javascript” src=”yourscript.js”></script> (more…)