What is a precompiled JavaScript library?

I’m learning how to use Magento e-commerce system, I’m reading its documentation, but I don’t understand some term, “pre-compiled JavaScript library”, what do they mean by this ?, how can JavaScript code be compiled?

A web loader for upgrading and installing Magento without using SSH (see chapter 2). • js-The main folder in which all JavaScript code contained with the Magento installation is saved. We will find all precompiled JavaScript libraries here.

Source: http://www.magentocommerce.com/wiki/2_-_magento_concepts_and_architecture/magento_s_base_structure

+5
source share
2 answers

I don't know what Magento ecommerce uses, but I know what JavaScript compilers are there.

Precompiled JavaScript is not practical, as various JavaScript interpreters will have their own compilation method. Therefore, when most people talk about JavaScript compilation, they usually refer to Minified JavaScript.

However, the last minifiers go beyond. A good example is the Google Closure Compiler Advanced Mode . This is related to the Google Closure Library and Tools , but well designed, even if it is used by itself.

There is an Online Demo of Closure Compiler .

, , minifier, JavaScript . :

function hello(name) {
  alert('Hello, ' + name);
}
hello('New user');

alert("Hello, New user"); . , .

. , JavaScript. hello. , JavaScript .

, , , -, C Java. , Perl.

+9

Magento admin

System -> Configuration -> Developer -> JavaScript Settings

Merged Javascript Files.

, Magento javascript, , "" , , javascript javascript. , , , Magento , .

, , , , , javascript, Javascript

Computer Science. .

(C,.NET, Java ..) ( ), . , , (Javascript), ( javascript).

+7

All Articles