<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Comlink on Ye Joo Park's Blog</title><link>https://park.is/categories/comlink/</link><description>Recent content in Comlink on Ye Joo Park's Blog</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Thu, 17 Apr 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://park.is/categories/comlink/index.xml" rel="self" type="application/rss+xml"/><item><title>Web Workers in Next.js 15 with Comlink</title><link>https://park.is/blog_posts/20250417_nextjs_comlink_examples/</link><pubDate>Thu, 17 Apr 2025 00:00:00 +0000</pubDate><guid>https://park.is/blog_posts/20250417_nextjs_comlink_examples/</guid><description>&lt;p&gt;Running heavy computations or background tasks directly on the main thread can lead to a sluggish user interface 🐌. Web Workers offer a solution by allowing you to run scripts in background threads, keeping your UI responsive. However, communicating with Web Workers traditionally involves a lot of boilerplate code using &lt;code&gt;postMessage&lt;/code&gt; and event listeners.&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://github.com/GoogleChromeLabs/comlink"&gt;Comlink&lt;/a&gt; is a tiny library by the Google Chrome team that simplifies Web Worker communication, making it feel like you&amp;rsquo;re interacting with local objects or functions.&lt;/p&gt;</description></item></channel></rss>