I'm creating a navigation menu based on: https://css-tricks.com/jquery-magicline-navigation/
Everything works fine except for the line width and position for the active item. Basically the width and position of the magic line is smaller than that of the active item.
I tried some fixes and concluded this is being caused by font-awesome icons because they take a couple of milliseconds to load in so it is causing the magic line to take the width without the icon loaded. I tried using on window.load and it works fine, my problem is that the page might contain lots of images so I don't want the user to wait for the page to fully load before seeing the animation.
My question is this: Is there a way to start the function after the font-awesome icons & google fonts are fully loaded and rendered?