When GA loads up, using the default code provided by Google, it automatically adds a pageview on page load. However, when page loads up, another pageview is added while loading the YouTube user's info and sub count. This is a fix for that. That automatic pageview from GA default code has been removed.
Every time a user updates the username entered in the search/ username input box, a new pageview will be added to google analytics. Also, a new pageview will be added whenever the user clicks the back button