{"id":7779,"date":"2025-11-17T14:26:11","date_gmt":"2025-11-17T19:26:11","guid":{"rendered":"https:\/\/frontendmasters.com\/blog\/?p=7779"},"modified":"2025-11-17T14:26:13","modified_gmt":"2025-11-17T19:26:13","slug":"there-are-a-lot-of-ways-to-break-up-long-tasks-in-javascript","status":"publish","type":"post","link":"https:\/\/frontendmasters.com\/blog\/there-are-a-lot-of-ways-to-break-up-long-tasks-in-javascript\/","title":{"rendered":"There are a lot of ways to break up long tasks in JavaScript."},"content":{"rendered":"\n<p>Alex MacArthur shows us <a href=\"https:\/\/macarthur.me\/posts\/long-tasks\/?ck_subscriber_id=2246502080\">there are a lot of ways to break up long tasks in JavaScript.<\/a> Seven ways, in this post.<\/p>\n\n\n\n<p>That&#8217;s a senior developer thing: knowing there are lots of different ways to do things all with different trade-offs. Depending on what you need to do, you can hone in on a solution. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Alex MacArthur shows us there are a lot of ways to break up long tasks in JavaScript. Seven ways, in this post. That&#8217;s a senior developer thing: knowing there are lots of different ways to do things all with different trade-offs. Depending on what you need to do, you can hone in on a solution.<\/p>\n","protected":false},"author":1,"featured_media":7780,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"sig_custom_text":"","sig_image_type":"featured-image","sig_custom_image":0,"sig_is_disabled":false,"inline_featured_image":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[29],"tags":[3],"class_list":["post-7779","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-the-beat","tag-javascript"],"acf":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/frontendmasters.com\/blog\/wp-content\/uploads\/2025\/11\/Screenshot-2025-11-17-at-11.25.44-AM.png?fit=1226%2C900&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/7779","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/comments?post=7779"}],"version-history":[{"count":1,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/7779\/revisions"}],"predecessor-version":[{"id":7781,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/posts\/7779\/revisions\/7781"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/media\/7780"}],"wp:attachment":[{"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/media?parent=7779"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/categories?post=7779"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/frontendmasters.com\/blog\/wp-json\/wp\/v2\/tags?post=7779"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}