Выводим css стили в тело и сжимаем html в 1 строку, удаляем css комментарии
(исправляя относительные пути изображений)
Добавляем в init.php и радуемся (или нет) как гугл прибаляет 10-15 балов
| <table> | |
| <caption>Statement Summary</caption> | |
| <thead> | |
| <tr> | |
| <th scope="col">Account</th> | |
| <th scope="col">Due Date</th> | |
| <th scope="col">Amount</th> | |
| <th scope="col">Period</th> | |
| </tr> | |
| </thead> |
| Глобальная переменная | |
| Чтобы сделать переменную доступную из любого места кода, можно использовать файл bitrix/.settings.php. | |
| return array ( | |
| // … | |
| 'contacts' => array( | |
| 'value' => array( | |
| 'phone' => '111111111', | |
| 'email' => '[email protected]', | |
| ), | |
| ), |
| file order_ajax.js | |
| 1) | |
| editActiveRegionBlock: function(activeNodeMode){ | |
| //add first string in function | |
| var node = activeNodeMode ? this.regionBlockNode : this.regionHiddenBlockNode, | |
| regionContent, regionNode, regionNodeCol; | |
| regionContent = node.querySelector('.bx-soa-section-content'); | |
| if (!regionContent) |
| <?php | |
| class MySQL { | |
| private $link = null; | |
| private $info = array( | |
| 'last_query' => null, | |
| 'num_rows' => null, | |
| 'insert_id' => null | |
| ); | |
| private $connection_info = array(); |
| <?php | |
| function curl_getQuery($url,$fields) | |
| { | |
| $fields_string = ""; | |
| foreach ($fields as $key => $value) { | |
| $fields_string .= $key . '=' . $value . '&'; | |
| } | |
| rtrim($fields_string, '&'); |
| <?php //<~ don't add me in - code below goes into functions.php | |
| add_shortcode( 'wpb_accordion_acf', 'wpb_accordion_acf' ); | |
| /** | |
| * Accordion Repeater Field | |
| */ | |
| function wpb_accordion_acf() { | |
| ob_start(); | |
| // *Repeater |
| # Включаем кэш в браузерах посетителей | |
| <ifModule mod_headers.c> | |
| # Все html и htm файлы будут храниться в кэше браузера один день | |
| <FilesMatch "\.(html|htm)$"> | |
| Header set Cache-Control "max-age=43200" | |
| </FilesMatch> | |
| # Все css, javascript и текстовые файлы будут храниться в кэше браузера одну неделю | |
| <FilesMatch "\.(js|css|txt)$"> | |
| Header set Cache-Control "max-age=604800" | |
| </FilesMatch> |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <script | |
| src="https://code.jquery.com/jquery-3.3.1.slim.js" | |
| integrity="sha256-fNXJFIlca05BIO2Y5zh1xrShK3ME+/lYZ0j+ChxX2DA=" | |
| crossorigin="anonymous"></script> | |
| <script type="text/javascript" src="calculate-checkbox-value.js"></script> | |
| </head> | |
| <body> |