Tag: html
HTML Hyphenation Hints
I recently was troubleshooting how to force the browser to hyphenate a PHP class name, and discovered something new.
The HTML entity ­ is a "soft hyphen"; it won't display unless the browser decides to introduce a line wrap at that point.
It's shy like that.
Deferring JS Until Script Load
A common recommendation when using JavaScript is to put your <script> elements at the end of your HTML, including those that reference a JS file on your site.
One issue, however, is that if you then have a script that references a function from another script, how do you ensure the other script is loaded already?