04-08-2011
Learning PHP and JavaScript is a good starting point.
9 More Discussions You Might Find Interesting
1. Web Development
I think we are missing an important forum on Web Development, including Web 2.0 and Mashups.
Well, here is another poll ..... I vote yes :b: (4 Replies)
Discussion started by: Neo
4 Replies
2. Shell Programming and Scripting
Hi ,
I might be asking a silly question but I just wonder if I can design/create my webpages using korn Shell or bash instead or using perl or php.This webpages I want to create are basically to perform admin work. With Perl the limitation for me is the fact of having to compile and install... (1 Reply)
Discussion started by: arizah
1 Replies
3. Programming
I'm wondering how programmers develop new Web Development languages because I want to learn how everything begins from the start. Let's say I'm planning to write a new language for the Web. How do I do this? Is there anyone who knows about the way Web Development languages first appear ? I'm asking... (1 Reply)
Discussion started by: Anna Hussie
1 Replies
4. Programming
I want to create a computer program that will translate from English to Spanish and vice versa. So someone could type in a word, phrase, or paragraph and translate from one language to another. What programming language would I use to write up the code and then implement this program?
I want to... (8 Replies)
Discussion started by: Anna Hussie
8 Replies
5. Web Development
I am learning Web Development, so far i am learning html,xhtml, css, java script....
What I want to know is what other Web Development languages should i learn? (1 Reply)
Discussion started by: Anna Hussie
1 Replies
6. Programming
I'm wondering how programmers develop new Web Development languages because I want to learn how everything begins from the start. Let's say I'm planning to write a new language for the Web. How do I do this? Is there anyone who knows about the way Web Development languages first appear ? I'm... (3 Replies)
Discussion started by: Anna Hussie
3 Replies
7. Web Development
Ok so I know they are both vitally important especially in today's technology. But which do you feel is more appealing and fun? What all are you able to do with each of them and what are the perks of one over the other Joomla templates are better run in Web Development as well (0 Replies)
Discussion started by: Anna Hussie
0 Replies
8. Web Development
I have a website and I am thinking of slowly making small mods to it and learn through tutorials along the way. To start using PHP where do I start?
Should I use dreamweaver? or do I need a PHP program that will allow me to access and edit the code? My websites programmed in cakephp. I want... (3 Replies)
Discussion started by: Anna Hussie
3 Replies
9. Shell Programming and Scripting
Wont let me add the solved tag, say's im over the max. Removing 2 tags did not help.
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.3 LTS
Release: 16.04
Codename: xenial
One of my game servers keeps going offline and so I want to... (18 Replies)
Discussion started by: Stuperfied
18 Replies
LEARN ABOUT DEBIAN
javascript::minifier::xs
JavaScript::Minifier::XS(3pm) User Contributed Perl Documentation JavaScript::Minifier::XS(3pm)
NAME
JavaScript::Minifier::XS - XS based JavaScript minifier
SYNOPSIS
use JavaScript::Minifier::XS qw(minify);
$minified = minify($js);
DESCRIPTION
"JavaScript::Minifier::XS" is a JavaScript "minifier"; its designed to remove un-necessary whitespace and comments from JavaScript files,
which also not breaking the JavaScript.
"JavaScript::Minifier::XS" is similar in function to "JavaScript::Minifier", but is substantially faster as its written in XS and not just
pure Perl.
METHODS
minify($js)
Minifies the given $js, returning the minified JavaScript back to the caller.
HOW IT WORKS
"JavaScript::Minifier::XS" minifies the JavaScript by removing un-necessary whitespace from JavaScript documents. Comments (both block and
line) are also removed, except when (a) they contain the word "copyright" in them, or (b) they're needed to implement "IE Conditional
Compilation".
Internally, the minification process is done by taking multiple passes through the JavaScript document:
Pass 1: Tokenize
First, we go through and parse the JavaScript document into a series of tokens internally. The tokenizing process does not check to make
sure you've got syntactically valid JavaScript, it just breaks up the text into a stream of tokens suitable for processing by the
subsequent stages.
Pass 2: Collapse
We then march through the token list and collapse certain tokens down to their smallest possible representation. If they're still included
in the final results we only want to include them at their shortest.
Whitespace
Runs of multiple whitespace characters are reduced down to a single whitespace character. If the whitespace contains any "end of line"
(EOL) characters, then the end result is the first EOL character encountered. Otherwise, the result is the first whitespace character
in the run.
Pass 3: Pruning
We then go back through the token list and prune and remove un-necessary tokens.
Whitespace
Wherever possible, whitespace is removed; before+after comment blocks, and before+after various symbols/sigils.
Comments
Comments that are either (a) IE conditional compilation comments, or that (b) contain the word "copyright" in them are preserved. All
other comments (line and block) are removed.
Everything else
We keep everything else; identifiers, quoted literal strings, symbols/sigils, etc.
Pass 4: Re-assembly
Lastly, we go back through the token list and re-assemble it all back into a single JavaScript string, which is then returned back to the
caller.
AUTHOR
Graham TerMarsch (cpan@howlingfrog.com)
REPORTING BUGS
Please report bugs via RT (<http://rt.cpan.org/Dist/Display.html?Queue=JavaScript::Minifier::XS>), and be sure to include the JavaScript
that you're having troubles minifying.
COPYRIGHT
Copyright (C) 2007-2008, Graham TerMarsch. All Rights Reserved.
This is free software; you can redistribute it and/or modify it under the same license as Perl itself.
SEE ALSO
"JavaScript::Minifier".
perl v5.14.2 2011-11-15 JavaScript::Minifier::XS(3pm)