Version Notes
Initial release
Download this release
Release Info
Developer | Meigee Sp.Z.o.o |
Extension | Meigee_JavascriptDefer |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0.0 to 1.0.1
- app/code/community/Meigee/JavascriptDefer/Helper/Data.php +15 -4
- app/code/community/Meigee/JavascriptDefer/Model/Observer/Html.php +15 -4
- app/code/community/Meigee/JavascriptDefer/etc/config.xml +16 -4
- app/code/community/Meigee/JavascriptDefer/etc/system.xml +16 -3
- app/etc/modules/Meigee_JavascriptDefer.xml +14 -2
- package.xml +17 -10
app/code/community/Meigee/JavascriptDefer/Helper/Data.php
CHANGED
@@ -1,9 +1,20 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
*/
|
6 |
-
?>
|
7 |
-
<?php
|
8 |
class Meigee_JavascriptDefer_Helper_Data extends Mage_Core_Helper_Abstract
|
9 |
{}
|
1 |
<?php
|
2 |
/**
|
3 |
+
*
|
4 |
+
* NOTICE OF LICENSE
|
5 |
+
*
|
6 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
7 |
+
* that is bundled with this package in the file LICENSE.txt.
|
8 |
+
* It is also available through the world-wide-web at this URL:
|
9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
10 |
+
* If you did not receive a copy of the license and are unable to
|
11 |
+
* obtain it through the world-wide-web, please send an email
|
12 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
13 |
+
*
|
14 |
+
* @category Meigee
|
15 |
+
* @package Meigee_JavascriptDefer
|
16 |
+
* @copyright Copyright (c) 2015 Meigee Sp.Z.o.o (https://www.meigeeteam.com)
|
17 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
18 |
*/
|
|
|
|
|
19 |
class Meigee_JavascriptDefer_Helper_Data extends Mage_Core_Helper_Abstract
|
20 |
{}
|
app/code/community/Meigee/JavascriptDefer/Model/Observer/Html.php
CHANGED
@@ -1,10 +1,21 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
-
*
|
4 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
*/
|
6 |
-
?>
|
7 |
-
<?php
|
8 |
class Meigee_JavascriptDefer_Model_Observer_Html
|
9 |
{
|
10 |
public function replaceJs($observer)
|
1 |
<?php
|
2 |
/**
|
3 |
+
*
|
4 |
+
* NOTICE OF LICENSE
|
5 |
+
*
|
6 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
7 |
+
* that is bundled with this package in the file LICENSE.txt.
|
8 |
+
* It is also available through the world-wide-web at this URL:
|
9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
10 |
+
* If you did not receive a copy of the license and are unable to
|
11 |
+
* obtain it through the world-wide-web, please send an email
|
12 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
13 |
+
*
|
14 |
+
* @category Meigee
|
15 |
+
* @package Meigee_JavascriptDefer
|
16 |
+
* @copyright Copyright (c) 2015 Meigee Sp.Z.o.o (https://www.meigeeteam.com)
|
17 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
18 |
*/
|
|
|
|
|
19 |
class Meigee_JavascriptDefer_Model_Observer_Html
|
20 |
{
|
21 |
public function replaceJs($observer)
|
app/code/community/Meigee/JavascriptDefer/etc/config.xml
CHANGED
@@ -2,14 +2,26 @@
|
|
2 |
<!--
|
3 |
/**
|
4 |
*
|
5 |
-
*
|
6 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
*/
|
8 |
-->
|
9 |
<config>
|
10 |
<modules>
|
11 |
<Meigee_JavascriptDefer>
|
12 |
-
<version>
|
13 |
</Meigee_JavascriptDefer>
|
14 |
</modules>
|
15 |
<global>
|
@@ -47,7 +59,7 @@
|
|
47 |
<config>
|
48 |
<children>
|
49 |
<meigee>
|
50 |
-
<title>
|
51 |
</meigee>
|
52 |
</children>
|
53 |
</config>
|
2 |
<!--
|
3 |
/**
|
4 |
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Meigee
|
16 |
+
* @package Meigee_JavascriptDefer
|
17 |
+
* @copyright Copyright (c) 2015 Meigee Sp.Z.o.o (https://www.meigeeteam.com)
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
-->
|
21 |
<config>
|
22 |
<modules>
|
23 |
<Meigee_JavascriptDefer>
|
24 |
+
<version>1.0.1</version>
|
25 |
</Meigee_JavascriptDefer>
|
26 |
</modules>
|
27 |
<global>
|
59 |
<config>
|
60 |
<children>
|
61 |
<meigee>
|
62 |
+
<title>Javascript Defer</title>
|
63 |
</meigee>
|
64 |
</children>
|
65 |
</config>
|
app/code/community/Meigee/JavascriptDefer/etc/system.xml
CHANGED
@@ -1,11 +1,24 @@
|
|
1 |
-
|
2 |
<!--
|
3 |
/**
|
4 |
*
|
5 |
-
*
|
6 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
*/
|
8 |
-->
|
|
|
9 |
<tabs>
|
10 |
<meigee_extensions_tab translate="label" module="JavascriptDefer">
|
11 |
<label>Meigee Extensions</label>
|
1 |
+
<?xml version="1.0"?>
|
2 |
<!--
|
3 |
/**
|
4 |
*
|
5 |
+
* NOTICE OF LICENSE
|
6 |
+
*
|
7 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
8 |
+
* that is bundled with this package in the file LICENSE.txt.
|
9 |
+
* It is also available through the world-wide-web at this URL:
|
10 |
+
* http://opensource.org/licenses/osl-3.0.php
|
11 |
+
* If you did not receive a copy of the license and are unable to
|
12 |
+
* obtain it through the world-wide-web, please send an email
|
13 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
14 |
+
*
|
15 |
+
* @category Meigee
|
16 |
+
* @package Meigee_JavascriptDefer
|
17 |
+
* @copyright Copyright (c) 2015 Meigee Sp.Z.o.o (https://www.meigeeteam.com)
|
18 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
19 |
*/
|
20 |
-->
|
21 |
+
<config>
|
22 |
<tabs>
|
23 |
<meigee_extensions_tab translate="label" module="JavascriptDefer">
|
24 |
<label>Meigee Extensions</label>
|
app/etc/modules/Meigee_JavascriptDefer.xml
CHANGED
@@ -1,8 +1,20 @@
|
|
1 |
<!--
|
2 |
/**
|
3 |
*
|
4 |
-
*
|
5 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
*/
|
7 |
-->
|
8 |
<config>
|
1 |
<!--
|
2 |
/**
|
3 |
*
|
4 |
+
* NOTICE OF LICENSE
|
5 |
+
*
|
6 |
+
* This source file is subject to the Open Software License (OSL 3.0)
|
7 |
+
* that is bundled with this package in the file LICENSE.txt.
|
8 |
+
* It is also available through the world-wide-web at this URL:
|
9 |
+
* http://opensource.org/licenses/osl-3.0.php
|
10 |
+
* If you did not receive a copy of the license and are unable to
|
11 |
+
* obtain it through the world-wide-web, please send an email
|
12 |
+
* to license@magentocommerce.com so we can send you a copy immediately.
|
13 |
+
*
|
14 |
+
* @category Meigee
|
15 |
+
* @package Meigee_JavascriptDefer
|
16 |
+
* @copyright Copyright (c) 2015 Meigee Sp.Z.o.o (https://www.meigeeteam.com)
|
17 |
+
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
|
18 |
*/
|
19 |
-->
|
20 |
<config>
|
package.xml
CHANGED
@@ -1,22 +1,29 @@
|
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Meigee_JavascriptDefer</name>
|
4 |
-
<version>1.0.
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Javascript Defer Extension allows defer parsing of JavaScript that increases performance of your store.</summary>
|
10 |
-
<description>
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
<authors><author><name>Meigee Sp.Z.o.o</name><user>Meigee</user><email>nick@meigeeteam.com</email></author></authors>
|
17 |
-
<date>2015-11-
|
18 |
-
<time>
|
19 |
-
<contents><target name="magecommunity"><dir name="Meigee"><dir name="JavascriptDefer"><dir name="Helper"><file name="Data.php" hash="
|
20 |
<compatible/>
|
21 |
<dependencies><required><php><min>5.4.0</min><max>5.5.9</max></php></required></dependencies>
|
22 |
</package>
|
1 |
<?xml version="1.0"?>
|
2 |
<package>
|
3 |
<name>Meigee_JavascriptDefer</name>
|
4 |
+
<version>1.0.1</version>
|
5 |
<stability>stable</stability>
|
6 |
<license uri="http://opensource.org/licenses/osl-3.0.php">Open Software License (OSL)</license>
|
7 |
<channel>community</channel>
|
8 |
<extends/>
|
9 |
<summary>Javascript Defer Extension allows defer parsing of JavaScript that increases performance of your store.</summary>
|
10 |
+
<description>By default in Magento all JavaScript files are placed in html <head> tag, that means your visitors see a blank page while JavaScript loads. It's ok if you use default Magento theme, but all custom themes have lot's of additional JavaScript that increases loading time dramatically.
|
11 |
+

|
12 |
+
Javascript Defer Extension parses all of your JavaScript and places it at the bottom right before closing <body> tag to reduce blocking of page rendering and avoid users seeing a blank page while JavaScript loads. That increases performance of your store. 
|
13 |
+

|
14 |
+
You don't need to customize any code in template files, the extension does that automatically before magento core render html code.
|
15 |
+

|
16 |
+
Features
|
17 |
+
* Defer parsing of JavaScript
|
18 |
+
* Speeds up the store loading
|
19 |
+
* Reduces the server loading
|
20 |
+
* Increases rating of your store in GTmetrix
|
21 |
+
* Easy configuration</description>
|
22 |
+
<notes>Initial release</notes>
|
23 |
<authors><author><name>Meigee Sp.Z.o.o</name><user>Meigee</user><email>nick@meigeeteam.com</email></author></authors>
|
24 |
+
<date>2015-11-06</date>
|
25 |
+
<time>10:55:17</time>
|
26 |
+
<contents><target name="magecommunity"><dir name="Meigee"><dir name="JavascriptDefer"><dir name="Helper"><file name="Data.php" hash="60043a761d85238f76b6c2862b2b18ed"/></dir><dir name="Model"><dir name="Observer"><file name="Html.php" hash="24e9a0d5b1deb4ff6c518bb3274fe8d4"/></dir></dir><dir name="etc"><file name="config.xml" hash="3e921cf15defadd7d6885cbe0a52cef8"/><file name="system.xml" hash="a40adabd4d49f4cdb28b3089515d3b9e"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Meigee_JavascriptDefer.xml" hash="f351323a98261e09c2d9a1a3785cfcf7"/></dir></target></contents>
|
27 |
<compatible/>
|
28 |
<dependencies><required><php><min>5.4.0</min><max>5.5.9</max></php></required></dependencies>
|
29 |
</package>
|