Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.javascript
JavaScript Golf Tool
0ntariokingston
4/22/2015 11:33:00 AM
http://www.scriptcompress.co...
is a web based tool that I am messing around with. It can make some scripts smaller.
To get the value from a textarea with id="whak", we normally have
a long call for it like:
document.getElementById("whak").value
and we may need to call it many times. This can inflate our script fast!
If we set some variables like:
var W = document, H = "getElementById", A = "whak", K = "value";
now we can use:
W[H](A)[K]
instead of document.getElementById("whak").value all the time (saving
28 bytes each time eventually).
The web tool will help you do this...
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
JavaScript Golf Tool
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password