{"id":105,"date":"2006-01-26T09:16:12","date_gmt":"2006-01-26T14:16:12","guid":{"rendered":"http:\/\/blog.elharo.com\/blog\/?p=105"},"modified":"2022-04-24T14:00:56","modified_gmt":"2022-04-24T18:00:56","slug":"safari-tip-1-reloading-stylesheets","status":"publish","type":"post","link":"https:\/\/www.elharo.com\/blog\/software-development\/web-development\/2006\/01\/26\/safari-tip-1-reloading-stylesheets\/","title":{"rendered":"Safari Tip 1: Reloading Stylesheets"},"content":{"rendered":"<p>Safari 2.0 (and probably other versions) does not reload stylesheets when you reload a page, not even if you hold down the shift key when pressing Reload, not even if you quit and restart the browser. This makes it difficult to debug your CSS. You can force Safari to reload the stylesheet by <!--more--> manually loading the stylesheet into the browser as text, reloading it, and then reloading the HTML page. That is,<\/p>\n<ol>\n<li>View source on the HTML document to find the stylesheet link. For instance in this page you&#8217;ll see this tag in the <code>head<\/code>:\n<p><code>    &lt;link rel=\"stylesheet\" href=\"http:\/\/www.elharo.com\/blog\/wp-content\/themes\/custom\/style.css\" type=\"text\/css\" media=\"screen\" \/><\/code><\/p>\n<p>The stylesheet is at http:\/\/www.elharo.com\/blog\/wp-content\/themes\/custom\/style.css<br \/>\nIf it&#8217;s a relative link, adjust accordingly.<\/p>\n<\/li>\n<li>Copy the link into the location bar and press the return key.<\/li>\n<li>At this point you should see the old stylesheet Safari has in its cache. Hit reload.<\/li>\n<li>Go back to the original page. Hit reload again.<\/li>\n<li>You&#8217;re done! You should now see the newly styled page.<\/li>\n<\/ol>\n<p>Frankly, this is a pain, which is why I prefer to do most of my CSS hacking in Firefox. However, I have Firefox configured to always use my own font faces and sizes so for font hacking I prefer to use Safari. If only so many sites didn&#8217;t insist on using ridiculously small fonts, I might be able to respect the stylesheets they sent me and use Firefox for everything. (Folks, 10 points is barely adequate for a newspaper. 12 points is an absolute minimum for readable web sites, and  larger fonts are better.)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Safari 2.0 (and probably other versions) does not reload stylesheets when you reload a page, not even if you hold down the shift key when pressing Reload, not even if you quit and restart the browser. This makes it difficult to debug your CSS. You can force Safari to reload the stylesheet by<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14,11],"tags":[410],"class_list":["post-105","post","type-post","status-publish","format-standard","hentry","category-mac","category-web-development","tag-flash"],"_links":{"self":[{"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/posts\/105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/comments?post=105"}],"version-history":[{"count":1,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/posts\/105\/revisions"}],"predecessor-version":[{"id":1005598,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/posts\/105\/revisions\/1005598"}],"wp:attachment":[{"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/media?parent=105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/categories?post=105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.elharo.com\/blog\/wp-json\/wp\/v2\/tags?post=105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}