Zach Cardoza Profile Picture

Posts related to web dev

  • Handling mouse and touch events uniformly

    On the surface, it would seem that a browser would treat a touch even just like a mouse event, but if you've worked in cross-platform development using web technologies you have likely discovered that this is not the case. On a mobile device, the touch event is fired immediately, however, it does not fire a click event until `300ms` after the touch which means your users are seeing a delay with every press. The solution is straight forward and frees you to explore more powerful user experiences.

  • Web USB device detection and permission

    Web USB offers a a great way to bridge the gap between hardware based systems and the modern web ecosystem. Whether it's legacy hardware that is being brought into the connected world, or home brew hardware for solving a problem, this article is the first step in building a reliable interface utilizing Web USB.

  • AMP pages using Nuxt.js

    AMP Project pages are consistently fast and accessible and have premium placement in Google search results. With a few tweaks to the rendering process, it's possible to make Nuxt.js page AMP powered and the reap the benefits!

  • Nuxt.js Smooth Scrolling with Hash Links

    The default Nuxt.js scroll behavior for hash appended routes varies depending on if a route is accessed via internal link or external link. This article outlines the issue and gives a simple configuration override to resolve the issue and provide better accessibility to users.