Menu Search
Jump to the content X X
Smashing Conf New York

You know, we use ad-blockers as well. We gotta keep those servers running though. Did you know that we publish useful books and run friendly conferences — crafted for pros like yourself? E.g. our upcoming SmashingConf New York, dedicated to smart front-end techniques and design patterns.

Web Development Reading List #140: CSS-Only Dropdowns, Toggles And HTML Sliders

In times where Facebook announces to track all web users whenever it can, it feels weird to work on disaster management tools1. You may now ask why, but if you consider what data you work with in such a project, you’re likely to be monitored because of a lot of keywords in there. And that’s what bothers me most: That people who want to do good need to fear that they’re under complete surveillance. I like Tor and secure VPNs more than ever for that reason. Speaking about web development, here’s why using Tor or VPNs for testing performance2 is a great idea.

Further Reading on SmashingMag:

News Link

  • Chrome 51 is out7 and with it, various security issues have been fixed. No big new features but more stability and improved performance for Chrome this time :)

General Link

  • Peter-Paul Koch shares why he thinks that the adage “Don’t Repeat Yourself” isn’t always useful in browser contexts8. We’re building our websites for browsers, and to make the page work properly, we need to repeat ourselves, especially when using progressive enhancement9.
  • It’s about raising the barrier. Jeremy Keith has talked and written about this a couple of times already, and now in times where the term “Progressive Web Apps” is shared all over the web, Jeremy says that Google makes web apps regressive10. A web app requires HTTPS, service workers, a manifest JSON and a few recent visits by the user to be installable — for most websites dealbreakers. Also the fact that the URL must not be displayed in the web app turns out to be harmful to the web itself as it depends on URLs.

Tools & Workflow Link

Security Link

  • Since we have widespread support for web storage solutions like Session Storage, the question arises if we still need cookies at all. James Kettle researched12 and concluded that cookies are insecure by default, and you need to set __Host-absolutely=secure; Path=/; HTTPOnly; Secure; SameSite=strict; (source13) to make them secure while Session Storage is secure by default. On the other hand, one aspect speaks clearly for cookies: They are controllable by the client and the server.

Privacy Link

  • Facebook is already known for not respecting privacy. They now announced14: “[…] we’re expanding Audience Network so publishers and developers can show better ads to everyone — including those who don’t use or aren’t connected to Facebook.” This basically means that they now track every user who gets in touch with some Facebook tracking technology (cookies, web storage, embedded fb-scripts, etc.) without asking. For Firefox, I added the Self-Destructing Cookies201915 extension in addition to my Canvas Blocker16 and uBlock Origin17 to browse more safely. But remember that an open Facebook tab still might track you on other sites, so the browser’s private mode seems more appropriate.
Self-Destructing Cookies browser extension18

The Firefox extension Self-Destructing Cookies201915 protects you against trackers by deleting a site’s cookies and LocalStorage as soon as you close its tabs. (Image credit: Self-Destructing Cookies201915)

Web Performance Link

Accessibility Link

JavaScript Link

  • Since browsers don’t support multirange sliders natively very well, a polyfill is needed. But most polyfills are really hacky and bring problems with customized styles. Not so Lea Verou’s tiny, flexible polyfill for multirange inputs23.
  • Alex Castillo shares how you make your web application send native web push notifications with Angular 22724.
  • Many projects feature a star-rating component. But very often they are a nightmare to build properly across various browsers and most of the time the solution isn’t accessible either. Starability25 comes as an accessible, simple module to solve the issue.
Send native web push notifications with Angular 226

Alex Castillo’s ng2-notifications lets you send native web push notifications with Angular 22724. (Image credit: Alex Castillo28)

CSS/Sass Link

Going Beyond… Link

And with that, I’ll close for this week. If you like what I write each week, please support me with a donation32 or share this resource with other people. You can learn more about the costs of the project here33. It’s available via email, RSS and online.

Thanks and all the best,

Footnotes Link

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17
  18. 18
  19. 19
  20. 20
  21. 21
  22. 22
  23. 23
  24. 24
  25. 25
  26. 26
  27. 27
  28. 28
  29. 29
  30. 30
  31. 31
  32. 32
  33. 33

↑ Back to top Tweet itShare on Facebook

is a freelance front-end developer and architect and cares about sustainable front-end experiences and ethical choices in life. He curates the WDRL, a weekly handcrafted web development newsletter that thousands of developers love, subscribe to, and donate for.

  1. 1

    Priya sharma

    June 3, 2016 1:15 pm

    lovely Anselm….
    i really liked your article….and the things you have told us about JavaScript and css is really great…………

  2. 2

    About cookies vs. Web Storage API: All these fancyful “new” and “modern” methods tend to turn into a big pitfall (aka PITA), as soon as you bring in multiple languages / i18n and in a few cases even accessibility.

    Had lots of “happy times” trying to debug multilingual carts of several major shopping / e-commerce solutions (including WooCommerce and Magento), which ultimately led to the conclusion: Use cookies. Proven as reliable and working.

    cu, w0lf.

  3. 3

    Web Design Tampa

    June 4, 2016 10:42 pm

    Great article!

  4. 4

    Hemang Rindani

    June 6, 2016 11:09 am

    If security is an issue than the most crucial factor to take care of are cookies. Make your cookies secured using https or work with VPNs.
    For better security, you must understand the criticality of online information and select the tools that can help you protect your privacy. Firewalls, banning cookies, VPN, using encryption and a secured web development tool like Drupal or Sitefinity CMS for web development are few of the best ways to stay safe.

  5. 5

    ARKA Softwares

    June 8, 2016 7:00 am

    This article is quite helpful as you have added important information regarding general news, JavaScript and CSS. It helps us in keeping ourselves updated. Thanks for posting!!

  6. 6

    Nice article, thanks for mentioning Starability.css! It would be cool to move it to other section though, as the lib doesn’t even need JavaScript to work. :)


↑ Back to top