dev-master
9999999-devMeanbee Footerjs module
The Requires
- php >=5.5
dev-fpc
dev-fpcMeanbee Footerjs module
The Requires
Meanbee Footerjs module
A common web development technique to improve page load times is to move JavaScript to the end of the page. A common frustration for frontend Magento developers is the inability to do this due to the amount of inline JavaScript found in templates., (*1)
This extension observes for the core_block_abstract_to_html_after
event, removes any javascript it finds and appends it to the end of the body., (*2)
Tested against:, (*3)
Enable the extension in System > Configuration > Advanced > Developer > JavaScript Settings > Move JavaScript to Footer
., (*4)
Add name of blocks with JS which must not be moved to footer in System > Configuration > Advanced > Developer > JavaScript Settings > FooterJS Excluded Blocks
.
Enter block names separated with a comma. Please note, JS libraries are moved to footer so be careful excluding JS which has dependencies., (*5)
Also there is another way to exclude some JS from moving to the footer - add attribute data-footer-js-skip="true"
to script
tag.
Currently there is no way to exclude JS added using addJs/addItem in layout., (*6)
Copyright (C) 2015 Tom Robertshaw, (*7)
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version., (*8)
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details., (*9)
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/, (*10)
Meanbee Footerjs module
Meanbee Footerjs module