Developer
Usage
Open Site → Site Settings and go to Developer. Both switches are off to start with:
- Inline SVG lets your CSS and scripts style the shapes inside an SVG image. Add the class
style-svgto the image, and the page swaps it for the SVG's own markup. - Debug Mode makes the block editor log how often and how long each Dirigible block takes to draw, in the browser console. It needs Dirigible Optimize active.
These settings used to be in Customize → Advanced; they moved to this page, with the same values.
When to use it
- Recoloring or animating part of a logo or illustration with CSS.
- Finding out which block makes the editor slow on a long page.
Tips
- Leave Inline SVG off unless you need it. It adds a small script to every page.
- Inline SVG only swaps in
.svgfiles from your own Media Library, and it strips scripts and click handlers from them first. Images from other sites, and other file types, stay as ordinary images. Styles saved inside an SVG (the colors Illustrator writes as.st0,.cls-1and so on) apply to that SVG only, so one icon can't recolor another or restyle the page. Your own CSS still overrides them as before. - Turn Debug Mode off when you're done. It's for the editor only and changes nothing visitors see.
Settings
Developer
Inline SVG
Lets CSS and scripts style the shapes inside SVG images that have the style-svg class. Leave off unless you need it: it loads a small script on every page.
Off by default.
Debug mode
For developers: the block editor logs how often and how long each Dirigible block takes to draw, in the browser console. Needs Dirigible Optimize active. Leave it off on live sites.
Off by default.