Skip to content

Instantly share code, notes, and snippets.

@vasilcov77
Created June 7, 2021 13:30
Show Gist options
  • Save vasilcov77/b949f992d48726293ac95a2c952e587c to your computer and use it in GitHub Desktop.
Save vasilcov77/b949f992d48726293ac95a2c952e587c to your computer and use it in GitHub Desktop.
Link script, string and css
use Bitrix\Main\Page\Asset;
Asset::getInstance()->addString('<meta http-equiv="X-UA-Compatible" content="ie=edge">');
Asset::getInstance()->addCss(SITE_TEMPLATE_PATH . '/css/main.css');
Asset::getInstance()->addJs(SITE_TEMPLATE_PATH . '/js/lazyload.js');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment