• 웹 플랫폼은 기기, OS, 브라우저에 관계 없이 동일한 동작을 보여준다는 특징이 있지만 항상 그렇지는 않다는 것은 널리 알려져 있는 사실입니다. 몇 년 전까지는 인터넷 익스플로러가 이 분야의 최강자였지만 IE가 사라지고 난 뒤에는 사파리가 그 자리를 차지하고 있습니다. 예시로 크롬에서는 2013년부터 지원한 Date Picker 기능이 2021년 4월에 추가되었습니다.
  • 제 블로그는 라이트 테마와 다크 테마를 지원합니다. 헤더에 있는 컬러 테마 버튼을 누르면 리로딩 없이 심리스 하게 변경됩니다. 모두 클라이언트 자바스크립트 덕분이죠. 제 블로그는 Sveltekit 으로 작성되었으며 따로 서버가 없기 때문에 Prerender 된 HTML에 클라이언트 코드에서 업데이트를 합니다. 컬러 테마 버튼도 Prerender 되는데 여기서 문제가 발생합니다. HTML 파일을 생성할 때 서버는 클라이언트가 어떤 컬러 테마를 사용할 지 알 수 없기 때문입니다.
  • My blog support light and dark themes. You click the color theme button inside the header and it updates without reloading, seamlessly. It all thanks to client Javascript.
  • The most important point when it comes to making a blog. Show your blog posts. Before migrating to Sveltekit I had been using Jekyll with Markdown files. I wanted to port the Markdown files as-is, so I needed to somehow render Markdown contents into HTML.
  • You might have noticed that something strange is going on inside Chrome Dev tool recently. You cannot see the preview or response on network tab. Not every network request is affected, but some of them.
  • There will be more than one or two posts in my blog. That means I should list the posts to users to encourage them to read what I've written. Listing posts is an important feature in blog services. If they don't feel good or not function well, people would not spend time reading on my blog.
  • Typescript 5.5 베타가 2024년 4월 25일 릴리즈 되었습니다! https://devblogs.microsoft.com/typescript/announcing-typescript-5-5-beta
  • Typescript 5.5 beta has been released on April 25th, 2024! https://devblogs.microsoft.com/typescript/announcing-typescript-5-5-beta
  • lazy.nvim is one of neovim plugin managers that helps you install plugins. By specifying Github repositories or local directories, you can install designated plugins easily.
  • Routing (paths, specifically) is one of the essential parts when you create a web app. You may want to take extra times designing the structure as it is not easy to change them as every single change may come as a breaking change. Web browsers remember your website's URLs or even readers might have saved links to your pages.