Hacker News new | past | comments | ask | show | jobs | submit login

Good to know i'm not the only person fucking things up like this.



Protip: Specify urls as "//example.com/path/to/style.css" or such. They will default to whatever protocol (http/https) was used to fetch the parent page. It's also less typing (DRY!).


Unless you're loading from a file (using file://)


I'm curious about when you would ever do this on a public-facing webpage.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: