Magento2-Pace
Magento2 Pace - Automatic page load progress bar for the backend and frontend., (*1)
Pace will automatically monitor your ajax requests, event loop lag, document ready state, and elements on your
page to decide the progress. On ajax navigation it will begin again!, (*2)
Based on https://github.com/HubSpot/pace, (*3)
Demo http://github.hubspot.com/pace/docs/welcome/, (*4)
Theme is configurable in the backend section System -> Configuration -> Advanced -> System -> Pace., (*5)
Backend Integration
A plugin has been created to after intercept the toHtml() method in \Magento\Backend\Block\Page\RequireJs
.
That is the only way to integrate pace directly after the <head>
tag. Pace CSS/JS will be cached., (*6)
Frontend Integration
@todo because internal Mage2 code states: Temporary solution, (*7)
Tests
@todo once calling phpunit will not take aeon., (*8)
Installation via Composer
Please run below commands in sequence, (*9)
- composer require schumacherfm/mage2-pace
- php bin/magento setup:upgrade
- php bin/magento static:content:generate
- php bin/magento setup:di:compile
Compatibility
- Magento >= 2
- php >= 5.5.0
Support / Contribution
Report a bug using the issue tracker or send us a pull request., (*10)
Instead of forking I can add you as a Collaborator IF you really intend to develop on this module. Just ask :-), (*11)
I am using that model: A successful Git branching model, (*12)
For versioning have a look at Semantic Versioning 2.0.0, (*13)
History
0.2.0
- Compatible to Magento 2 GA 2.0.0
- PHP7 compatible
0.1.0
- pace.js to 1.0.2
- Initial release
License
The MIT License (MIT), (*14)
Copyright (c) 2013-2016 Cyrill Schumacher, (*15)
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:, (*16)
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software., (*17)
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE., (*18)
Author
Cyrill Schumacher, (*19)
My pgp public key, (*20)