-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Перевод документации на английский язык #1
Comments
How to grab it? Grab via bower: Grab via npm: Latest version CDN link (change 1.0.4 to older version if needed): https://cdn.rawgit.com/iserdmi/afterlag-js/1.0.4/dist/afterlag.min.js At the worst try direct download. |
Afterlag.js — plugin for tracking page load lags. Ordinarily we are executing something just after page loads. However it is a period while page slows. Afterlag allows you to begin animation immediately when it can run smoothly and without lags. See demo. Afterlag is built in native Javascript. jQuery plugin also exists. Plugin works out of the box and doesn't require additional configuration. However sophisticated soul will dig settings to configure Afterlag for itself. |
Спасибо большое, Андрей! |
Quick startChoose a version of the plugin you are going to use – using native JS or using JQuery – and upload its file to your website. How does it work?Along with the creation of a new object new Afterlag() there is an interval launched. This interval checks actual amount of time after its last call every 50 ms. If 50 ms are passed – as expected – lags are over, animation is going to run smoothly. To make sure about it, the match test is repeated 10 times. Every listed value may be edited in settings. After successful 10th match test all the functions passed through afterlag.run() are called. If some function will have been passed to afterlag.run() after lags are over, this function will be called immediately. Along with the call of Native plugin usage<код> -info.status |
Хочу перевести документацию на английский язык. У меня проблемы с грамотностью, мне будет за такой перевод стыдно. Если вам понравился плагин, пожалуйста, помогите перевести «README.md». Возьмите любой кусок текста, переведите его и отправьте сюда в виде комментария. Спасибо!
Текущее состояние перевода можно посмотреть в этом файле: README_EN.md
The text was updated successfully, but these errors were encountered: