I'm planing to build an one page scroll site using some divs with heights and font sizes on viewport units (vh, vw).
I'm aware of some support problems on older browsers, but I'm not interested in increasing the page load using vminpoly since I found it to bulky and I'm not crazy about very outdated browsers support.
By the other side, Buggyfill could be a smaller but partial solution for cross browser compatibility.
Another solution could be testing for support as written on css-tricks and later using jQuery for resizing the affected elements:
var testEl = $("#vw-test");
testEl.css({
width: "100vw"
});
if (testEl.width() == window.innerWidth) {
// do nothing
} else {
// resize divs with jQuery
};
What would be your approach for supporting viewport units?
Do you know another simple solution for a reasonable browser compatibility?