-
Reduce the size
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()
}
-
 Originally Posted by jettamo
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?
Don't ever print the code. Electrons always weigh less than paper!
-
Look up javascript minifiers on Google.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
|
Bookmarks