Home Tags Privacy About

All posts tagged with "Javascript"

Javascript (JS), a programming language that conforms to the ECMAScript standard. It is known for being dynamically typed and used to power websites.

← Newer Posts Page 2 of 3 Older Posts →

Angular - How to keep loaded content of a page/component when jumping between different routes using routing-outlet

I recently had to redirect between some components in an Angular application and I figured it would be a better user experience if the state was »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Javascript 14 March 2021

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 »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Javascript 07 October 2020

Javascript - how to get a child element with a specific class, attribute or any other selector

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 »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Javascript 05 October 2020

How to make prism.js word-wrap (line-wrap) code snippets

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 »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Javascript, HTML and CSS 12 September 2020

Adding code highlighting to your website and blog using prism.js

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 »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Javascript, Web and HTTP 22 August 2020

How to lazy load Google ads using native javascript!

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 »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Javascript 11 July 2020

How to lazy load Disqus using vanilla/native javascript! - Updated 2022

I recently found out that my blog was slow according to google pagespeed. I scored below 50, but I could have sworn that when I created »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Javascript, HTML and CSS 27 June 2020

How to use Websockets with Asp.net core - an example on how to push messages to a website

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 »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on ASP.NET, Javascript 20 January 2019

What are the `` symbols (back tick) in javascript? and what does the following ${something} do?

The `` signs are used to create templates, they have the fitting name "template literals". These are used to make it more simple to create »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Javascript 01 January 2019

Javascript - what is hoisting and why does it matter?

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- »

Peter Daugaard Rasmussen Peter Daugaard Rasmussen on Javascript 22 August 2018
← Newer Posts Page 2 of 3 Older Posts →
  • Rss
  • Twitter
  • LinkedIn
  • profile for Peter Rasmussen at Stack Overflow, Q&A for professional and enthusiast programmers
Peter Daugaard Rasmussen - developer, Consultant, Blogger © 2026 Privacy policy