home.social

#vanillajavascript — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #vanillajavascript, aggregated by home.social.

  1. 🚀 Oh joy, another "How to Build a Rocket with a Toothpick" guide! 🧩 Let's reinvent the wheel with Vanilla JavaScript, because frameworks are so mainstream. 🥱 Prepare for a Friday night filled with code snippets and zero productivity!
    jsdev.space/howto/reactive-van #HowToBuildARocket #VanillaJavaScript #CodingHumor #FridayNightCoding #ZeroProductivity #HackerNews #ngated

  2. I refactored another one of my small intranet tools to get rid of jQuery. I have to say, it's a bit of a chore to write document.getElementById() so much. jQuery's $("#...") is so much shorter. Likewise, addEventListener() is longer than on(). That sucks a bit.
    But apart from that it's nice to remove a framework and lots of <div> tags and replace it with techniques that browsers have built into them like CSS (or accordion widgets using the <details> tag).
    #vanillaJavaScript

  3. Just released a free little puzzle.
    henspace.itch.io/zupzle-geomet

    I wrote the game to have a little practice writing a vanilla JavaScript game. I also intend to release a version using my drawings. Sort of like an interactive portfolio.

    #indiedev #puzzle #gamedev #itch_io #itchio #vanillajavascript #html5

  4. In preparation for the new SPA I've spent 2-3 days learning about web components and refactoring the jQuery front-end to a tiny PHP web app using #vanillaJavaScript. That blog in the previous post and the Mozilla Dev Network docs were all I needed but it was a lot of open tabs and back-and-forth between them 😃

    Plain JS is quite verbose at times compared to jQuery. Especially with AJAX requests. Also had to learn about CORS, promise objects... but I'm confident to tackle more now.

    #WebDev

  5. As neat as #jquery or #cheerio is, I miss the abilities of #VanillaJavaScript in the browser.

    I don't remember how many times I tried to grab certain properties, which would have been available in the browser, but don't exist in cheerio.

    And it is a bit annoying to constantly put various html elements into the cheerio wrapper class to get access to the various functionalities it offers. Thus instead grabbed the minimal viable data and just worked further with arrays.

    #javascript

  6. I’m running a marathon on Sunday and have been tapering over the past two weeks or so — reducing the amount of training and increasing the amount of rest. So I built a thing to keep me virtually running and it took so much time! Hopefully, I can run a marathon quicker :) lgc.li/blog/vanilla-marathon #EdinburghMarathonFestival #vanillaJavaScript

  7. With only 11 days to go, there's no time left to train for the Edinburgh Marathon so I built this over the weekend as the final part of my preparations: vanilla-marathon.logicalcobweb

    #EdinburghMarathonFestival #MacmillanCancerSupport #vanillaJavaScript

  8. With only 11 days to go, there's no time left to train for the Edinburgh Marathon so I built this over the weekend as the final part of my preparations: vanilla-marathon.logicalcobweb

    #EdinburghMarathonFestival #MacmillanCancerSupport #vanillaJavaScript

  9. With only 11 days to go, there's no time left to train for the Edinburgh Marathon so I built this over the weekend as the final part of my preparations: vanilla-marathon.logicalcobweb

    #EdinburghMarathonFestival #MacmillanCancerSupport #vanillaJavaScript

  10. #Development #Techniques
    JavaScript events are the shit · Cool things that you can achieve with just plain old events ilo.im/14dt9z

    “You might not need an expensive or heavy library!”

    _____
    #WebDevelopment #WebDev #Frontend #Code #JavaScript #VanillaJavaScript #Events

  11. Bootstrap 5 users: I want to populate a list-group or a menu with a list from an external file. And NOT use jQuery, but vanilla JS. Is there a simple example I can follow? I’m not proficient in JS, but am good at adapting examples. #Bootstrap #VanillaJavascript

  12. Why is Stack Overflow such a cesspit of unanswered questions, obsolete answers, and downright assholery? If I wanted a jQuery solution I’d put that into my search terms. JFC. #VanillaJavascript #StackOverflow #Bootstrap #webdev

  13. I need a two hierarchy (parent, child) tree view in html/css and vanilla JS. However, I wish it was a component of Bootstrap 5. I have an example from W3 School that will have to do. I’m a novice coder. I’m better as a UX designer. This navigation motif is as old as DOS itself and still useful to me for this project. #uxDesign #html #VanillaJavascript