Use this block to collect data about the user's browser.
Element | Usage | Description |
---|---|---|
svg | deps |
Checks whether the browser supports SVG format. |
The block is implemented in:
bh.js
bemhtml
The block enables an inline script that adds CSS
classes to the <html>
tag to specify whether JavaScript is enabled – ua_js_no
or ua_js_yes
.
It doesn't have a visual representation on the page.
Used inside the page block. You normally don't need to connect it to the page yourself.
svg
elementThis element enables an inline script that adds CSS
classes to the <html>
tag to specify whether SVG is supported – ua_svg_no
or ua_svg_yes
.
It doesn't have a visual representation on the page.
To use it, add the element to the deps.js
dependencies file for the block that needs information about SVG support: