Javascript - How to remove all elements in a list (HtmlCollection) within a loop
I recently wanted to remove certain elements on my page. They all shared the same class, but I ran into problems when the last one in »
I recently wanted to remove certain elements on my page. They all shared the same class, but I ran into problems when the last one in »
In order to get a child element or several child elements you can use the querySelectorAll or QuerySelector functions. Yes these can be both at document »
I recently made a post where I needed to show some code that would look better without word wrap as it was basically one or two »
If you are a blogger on software you are likely going to share some code snippets. Without highlighting code can be hard to read and your »
I recently made a post on how I lazy load my Disqus comments. I did this because my website was performing poorly when I analysed it »
I recently found out that my blog was slow according to google pagespeed [https://developers.google.com/speed/pagespeed/insights/?url=peterdaugaardrasmussen.com] . I scored below »
I finally decided that it was time to give websockets a try. They have been around for over a decade, but I just had not found »
The `` signs are used to create templates, they have the fitting name "template literals". These are used to make it more simple to create strings. Where »
I recently created a post on the differences between var, let and const [https://peterdaugaardrasmussen.com/2018/08/22/javascript-what-is-the-difference-between-var-let-and-const/] . One thing that I realised writing »
Back in 2016 I made a post [https://peterdaugaardrasmussen.com/2016/01/09/javascript-let-what-is-it-compared-to-var/] on the difference between let and var. However I forgot to include »