Recorded: February 25, 2018 In this episode, we’ll talk about Xcode and then get it installed.
In the last episode, we parsed the URL and then used the host element to check if the URL is local to our website. Shouldn’t we use that same strategy for our version query string check? Think about it. Why search the entire URL for the version key pattern when we could just search the query itself? Plus, if the asset was enqueued with the version number set to null, then query may not even be in the parsed URL. Let’s improve our code. Then we’ll walk through all of the checks and make each one readable without an inline […]
If a stylesheet or script is not local to the website, then we do not want to convert or apply a version number to it. Right? The file for that asset does not reside on our website’s web server. Nope, it’s somewhere else. Examples of this are: Font Awesome Google Fonts Bootstrap Zurb’s Foundation As part of our checks, we want to verify if the asset’s URL is local to our web server. How do we do that? Think about what would make a URL local.