My issue with my backbone.js app is that I have noticed some slow loading files (a .css and a .js) that are causing the page to block until they are fully loaded.
After rendering the backbone view, I am looking for a way to delay the loading of these files until after certain JS has been executed. I have attempted to achieve this in JS with the following code:
view.render()
$('head').append("<script type=...")
$('head').append("<link rel='stylesheet'...")
While this solution works, I have encountered an issue with my CSS (specifically a webfont css) where the page fonts are hidden on Android phones and only appear when the screen is touched.
My question is, is this method of loading CSS and JS after page load considered a poor practice? Are there alternative, more effective approaches to consider?