HTML5 introduced the defer attribute for scripts whose loading can be deferred in a HTML page. defer may be used for any scripts that don’t need to be loaded before the DOM (a.k.a don’t mess with the DOM before it is ready). For a long time web developers have been advised to put all scripts that don’t need to be
Tag: web-applications
Google Analytics: How to track pages in a single page application?
Currently in my website, I used HTML5’s pushState() and popState in links to increase the speed. However, this doesn’t really change the real URL and it looks like it will affect and mess up the Google Analytics’s code. (doesn’t show a url change) Is there a possible solution for this? Thanks, Answer If you are using the newer analytics.js API,
Google Chrome “Application Shortcut”: How to auto-load JavaScript?
Introduction Google chrome has a feature that allows you to create shortcuts to web pages and make them appear like traditional desktop applications. For example, a shortcut to twitter mobile might be The file icon for this app is stored in My Question It’s been a while since I’ve used this feature and I seem to remember that you could