We've resigned ourselves to reverting the current behavior, which means that we won't be able to get around the performance issues. Specifically, we have to retrieve computed display values, which is especially slow in webkit and blink.
Something like...
Note: Usage of these methods may cause performance issues, especially when used on many elements. Use performance testing tools to determine whether these methods are causing a problem.