Added an option for a “media query,” so that the script won’t run when the viewport is a smaller width than a specified width.
When using the script on a h2 with the nbsp option with a particularly wide webfont, I found that the script could unintentionally force some text to extend wider than the viewport, adding a horizontal scrollbar on mobile.
Added an option for a “media query,” so that the script won’t run when the viewport is a smaller width than a specified width.
When using the script on a
h2
with thenbsp
option with a particularly wide webfont, I found that the script could unintentionally force some text to extend wider than the viewport, adding a horizontal scrollbar on mobile.Would need to be re-minified.