Category Archives: Tips and Tricks
Caching Explained
Can’t we just turn it off?
Unfortunately the downside of caching is something we must tolerate; simply because the mild inconvenience of changes not being immediately visible is far out weighed by the increased speed and efficiency of your website and server.
https://cachingexplained.com/Caching Explained
Importing CSS Breakpoints Into Javascript
A quick and easy solution to this problem is to have your JS import the breakpoints directly from the CSS values in the DOM. This solution brings the current breakpoint variable into your JS in a way that’s:
- Simple & Lightweight
- DRY
- Compatible with all browsers that support media queries (IE9+)
See Lullabot article, Importing CSS Breakpoints Into Javascript