Uncaught Error: cannot call methods on tabs prior to initialization in Magento2.x

Some time we may get JS console issue as like below in Magento2.x Product detail page.

This is nothing else it is because of Tab implementation in PDP page.

Bye default in magento2 PDP page tab was implemented .

In that tab only we can see product attribute and review section.

When we do some customization instead of tab then you may get this issue. To resolve we can comment out if you are not use tab concept either we can do length validation before script render.
JS console:

jquery.js:2 Uncaught Error: cannot call methods on tabs prior to initialization; attempted to call method 'option 
app/design/frontend/Jute/ecommerce/web/js/responsive.js
/*setTimeout(function () { 
$('.product.data.items').tabs('option', 'openOnFocus', false);
}, 500);*/

Post by : Karthikeyan