4 ms·
The minimizing is good, but doesn't using a path like //example.com/my-image.jpg instead of http://example.com/my-image.jpg http://example.com/my-image.jpg fix
by hboon 16y ago
The minimizing is good, but doesn't using a path like //example.com/my-image.jpg instead of http://example.com/my-image.jpg http://example.com/my-image.jpg fix the issue with http/https?
- patio11 16y agoThat works if you can enforce that 100% of the time, against all CSS loaded by your site. The first time you forget it in e.g. a lightbox script you add to get used on a landing page whose implementation you didn't even glance at, your registration page will break. This has cost me thousands of dollars before, so I enforce assumptions like "there are no http:// http:// urls in my CSS files" in code.
- mnutt 16y agoHow about part of your test suite that just greps for http:// http:// in public//*.css and fails CI if it finds anything?