This may be asked and answered but I have 5 mins to find out. How it can be done, and if in many ways, to reduce the weight of java scripts?
Printable View
This may be asked and answered but I have 5 mins to find out. How it can be done, and if in many ways, to reduce the weight of java scripts?
function setMarPad(x){
if(kolor=='btc'){ if(marpad=='p'){d.paddingTop=x}
else if(marpad=='m'){d.marginTop=x}
else if(marpad=='b'){d.borderTopWidth=x}}
else if(kolor=='brc'){ if(marpad=='p'){d.paddingRight=x}
else if(marpad=='m'){d.marginRight=x}
else if(marpad=='b'){d.borderRightWidth=x}}
else if(kolor=='bbc'){ if(marpad=='p'){d.paddingBottom=x}
else if(marpad=='m'){d.marginBottom=x}
else if(marpad=='b'){d.borderBottomWidth=x}}
else if(kolor=='blc'){ if(marpad=='p'){d.paddingLeft=x}
else if(marpad=='m'){d.marginLeft=x}
else if(marpad=='b'){d.borderLeftWidth=x}}
getStyles()
}
Look up javascript minifiers on Google.