Tech
Partytown, Offloading 3RD Party Scripts to Web Workers – InfoQ.com
Partytown is a small JavaScript library that speeds up web application load times by helping developers to move third party scripts into web workers and off the main thread.
Since JavaScript is single-threaded, developers can not take advantage of the multiple CPU cores available on most devices.
To tackle this challenge, Web Workers were introduced to enable developers to execute code in background threads.
While major browsers have supported Web Workers for roughly ten years, adaptation has been slow due to its complex implementation.
Partytown attempts to simplify the use of Web Workers by providing a simple API to tackle a specific problem – 3rd party scripts like Google Analytics, Facebook Pixel, Mixpanel, etc.
These scripts are essential for modern web applications as they enable companies to track usage, perform AB tests, and provide advertisements – but they come at a performance cost.
By offloading these non-critical scripts onto Web Workers, Partytown can improve web applications’ performance without interrupting the application’s normal flow and with minimal developer involvement.
Setting up Partytown is a two-step process. First, developers must install and integrate the library into their build process.
Partytown provides a set of short integration tutorials for most major JavaScript frameworks, including React and Angular.
Secondly, developers need to tag the relevant third party scripts that Partytown will manage. This is done by modifying the type of the script tag to type=”text/partytown”
i.e.
<script type="text/partytown" src="https://example.com/analytics.js"></script>
Using the text/partytown tag tells the browser not to process the script and provides a query selector through which Partytown can find the tagged scripts and execute them through web workers.
It’s important to note that Partytown is still in beta. While several companies have reported using it in production, developers are advised to test that the third party libraries they use continue to work correctly before considering production usage.
Developers can find a list of popular third party libraries tested with Partytown in the following link. These include popular services like Google tag manager and Facebook Pixel.
Developers who wish to learn more about Partytown can find detailed instructions on the official website and follow the builder.io blog for updates on upcoming changes.
Partytown is distributed under the MIT license.
Tech
Nothing customer data leaked after apparent breach – MobileSyrup
The personal information of some Nothing customers has hit the web.
As discovered by Android Authority, a file on a text file-sharing website contains a bunch of Nothing Community profiles. While some of the data is here public information, like usernames, comments and join dates, private information, namely emails, are also visible.
Digging into it further, Android Authority says it couldn’t find any evidence of passwords being leaked. It also notes that the data appears to be from 2022 and affects roughly 2,250 Nothing Community profiles, including some for community managers.
Of course, despite Android Authority‘s investigation, there’s always the chance that other info could have been leaked. Therefore, you might want to keep an eye on your info for any strange activity on top of changing your password.
Android Authority says it’s still awaiting comment from Nothing.
Source: Android Authority
Tech
BikeRadar Podcast | Sea Otter 2024 mountain bike round-up | BikeRadar – BikeRadar
In this episode of the BikeRadar Podcast, George Scott and Jack Luke look back over the best MTB tech they sniffed out at Sea Otter 2024.
Neko Mulally’s bonded DH frame is discussed, alongside the much anticipated Maxxis Aspen ST tyres, which have been teased by professional riders over the past couple of years.
George and Jack also share their thoughts on Atherton’s new S-Range alloy bikes, with the S.170 making its trade show debut after being released in February.
We’ve also put together an article on all the new and oh-so-shiny MTB tech from the show, so be sure to check that out.
How to subscribe to the BikeRadar Podcast
The BikeRadar Podcast takes you to the heart of the issues that matter for bike riders, whether you’re a roadie, mountain biker, gravel rider or commuter.
From the latest tech news, reviews and debates, to interviews with the biggest and most interesting personalities in cycling, the podcast is your direct line into the BikeRadar team.
To make sure you don’t miss a future episode, you can subscribe via Apple, Spotify or wherever you get your podcasts.
Tech
Apple's FineWoven cases rumored to get one final release – AppleInsider
Apple has probably stopped production of its poorly-received FineWoven cases for the iPhone, but a new report from the same herald of its death says there is one last set of seasonal colorways coming.
Now according to leaker Kosutami, who first reported the cancellation, there could still be one more push for the FineWoven cases.
Pressed on the rumor, Kosutami emphasizes later in the same thread that if this is correct, it will be for only one more season. It’s now almost eight months since the launch of the iPhone 15 range, so it’s unlikely that there is to be a new mid-cycle color of the iPhone, but perhaps there can yet be new colors for the FineWoven cases.
Consequently, this rumor can at best be said to be possible, especially if Apple had already committed resources to the new colors. However, since FineWoven has proven to be startlingly poor at stain resistance or even just durability, it’s more believable that it is gone for good than it is that FineWoven will get a last hoorah.
-
Health22 hours ago
See how chicken farmers are trying to stop the spread of bird flu – Fox 46 Charlotte
-
Investment24 hours ago
Own a cottage or investment property? Here's how to navigate the new capital gains tax changes – The Globe and Mail
-
Science21 hours ago
Osoyoos commuters invited to celebrate Earth Day with the Leg Day challenge – Oliver/Osoyoos News – Castanet.net
-
Politics21 hours ago
Haberman on why David Pecker testifying is ‘fundamentally different’ – CNN
-
News21 hours ago
Freeland defends budget measures, as premiers push back on federal involvement – CBC News
-
Economy21 hours ago
The Fed's Forecasting Method Looks Increasingly Outdated as Bernanke Pitches an Alternative – Bloomberg
-
Tech19 hours ago
Meta Expands VR Operating System to Third-Party Hardware Makers – MacRumors
-
Business20 hours ago
Gildan replacing five directors ahead of AGM, will back two Browning West nominees – Yahoo Canada Finance