For some reason, $("...").width() returns the wrong value immediately after the document is ready.
I see these values:
Immediately after the document is ready:
$(document).ready(function(){ $("li.active a").width()
I get the width of the Wordpress menu items and resize them so that they always fit my responsive design. There are no images or assets that could cause this change.
Update See my comment below. Turns out there was an asset, a built-in font that took a split second to load.
orourkedd
source share