Remove bundles javascript
article thumbnail

JavaScript Macros in Bun

Hacker News

Call JavaScript functions at bundle-time and inline results into the AST

123
123
article thumbnail

We reduced the size of our JavaScript bundles by 33%

Hacker News

Comments (..)

123
123
professionals

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

article thumbnail

In Defence of DOM­Content­Loaded

Hacker News

The DOMContentLoaded event fires once all of your deferred JavaScript has finished running. Knowing when your main bundles have run is great insight in lieu of more forensic runtime data, and it’s something I look at with any client that leans heavily on (frameworks that lean heavily on) defer or type=module. View unabridged.

Analytics 181
article thumbnail

Microsoft Word gets ChatGPT integration with new ‘Ghostwriter’ third-party add-in

Flipboard

” Husting is now working on a larger bundle of ChatGPT add-ins for Excel, PowerPoint, OneNote and Outlook, as well. He has been working on Ghostwriter since November, using the Office JavaScript Framework. “What I’m doing is available for everybody to use and take advantage of now, because why wouldn’t you?”

article thumbnail

Why Webpack? (or, How Not to Serve Javascript)

Victor Zhou

Having never heard of module bundlers before, I instead homebrewed my own approaches for serving Javascript on the web. Stage 1: One file = One script In the very beginning, I separated my client Javascript into a few files and included all of them in my HTML with < script > tags. task ( 'build-js' , function ( ) { return gulp.

40
article thumbnail

Using Flow to Type Check a Node.js Codebase

Victor Zhou

Javascript is dynamically typed , but tools like Flow allow you to add static type checking to improve the safety of your codebase. Read my primer on using Flow to static type check your Javascript. While Flow is most commonly used to add types to client-side Javascript, it can also be easily used with Node.js!

52
article thumbnail

How to Build a Multiplayer (.io) Web Game, Part 1

Victor Zhou

All you need is a working knowledge of Javascript: you should be comfortable with things like ES6 syntax, the this keyword, and Promises. Even if you’re not the most familiar with Javascript, you should still be able to get through most of this post. is the Javascript (JS) client entrypoint. I’ll refer to this as our CSS bundle.

59