Commit 5d0b87a9 authored by Nikolay Gromov's avatar Nikolay Gromov

Рефакторинг глобального JS-файла

parent 7401d697
// Если на проекте jQuery
// $( document ).ready(function() { // $( document ).ready(function() {
// // code
// });
// Изоляция без jQuery
// (function(){
// // code
// }());
// На проекте нет jQuery, но хочется $( document ).ready...
// function ready(fn) {
// if (document.attachEvent ? document.readyState === "complete" : document.readyState !== "loading"){
// fn();
// } else {
// document.addEventListener('DOMContentLoaded', fn);
// }
// }
//
// ready(function(){
// // code
// }); // });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment