Search Weight Loss Topics: |
The JavaScript Framework That Puts Web Pages on a Diet – WIRED
Websites are too damn big.
The average web page is about 2 megabytes, according to HTTP Archive, a site that tracks the performance of websites and the technologies they use. Sure you can download 2 megabytes in less than a second on a good 4G mobile connection. But todays web pages are problematic for people on slow connections or with small bandwidth caps. Not all that long ago, a complex game or software program fit on a 1.4-megabyte floppy disk.
There are many reasons todays web is so bloated, including the ads and tracking scripts that saddle so many pages. Another reason is that websites do much more than just display text and images. Many sites now look and feel like full-blown desktop applications.
To build these interactive sites, many web developers turn to open source packages that handle common tasks. These tools liberate programmers from a lot of grunt work, but they can add heft to a project. Facebook's popular open source React library for building user interfaces, for example, weighs in at 100 kilobytes. Throw in some other tools and graphics, and soon youre talking many megabytes.
The up and coming JavaScript framework Svelte, created by visual journalist and software developer Rich Harris, aims to make it easier to write faster, smaller interactive websites and applications. Web developer Shawn Wang says he cut the size of his personal website from 187 kilobytes to 9 kilobytes by switching from React to Svelte.
"It was a big 'wow' moment," Wang says. "I wasn't even trying to optimize for size and it just dropped."
Harris, a graphics editor for The New York Times, created and released the first version of Svelte in 2016 while working for The Guardian. Many of his projects involved interactive graphics and animations, but he worried that the graphics could take too long to load or would chew through users data limits.
Frameworks add heft to websites because they traditionally serve as a middle layer between an app's code and the user's browser. That means developers need to bundle the entire framework, in addition to their own code, with an app, even if they don't use all of the framework's features. Wang compares this to a rocket ship that needs massive fuel tanks to launch into space.
Harris took a different approach. Svelte performs its middle-layer work before a developer uploads code to a web server, well before a user ever downloads it. This makes it possible to remove unnecessary features, shrinking the resulting app. It also reduces the number of moving parts when a user runs the app, which can make Svelte apps faster and more efficient. Svelte is like a space elevator, Wang says. The framework was tricky to create, but advocates say it makes it easier for developers to build efficient apps.
Everything you ever wanted to know about Linux, GNU, and how big companies are making money off of free, collaboration-based software.
Wang says he likes to use Svelte for web pages, but he still uses React for larger applications, including his professional work. For one thing, the larger an app, the more likely a developer will use all of React's features. That makes it less wasteful. In fact, some Svelte apps are bigger than apps made with React or similar tools. And theres much greater demand for React developers than Svelte developers.
In the State of JavaScript 2019 survey of more than 21,000 developers, 88 percent of respondents who had used Svelte said they were satisfied with it, giving it the second-highest satisfaction rating in the survey, just behind Reacts 89 percent satisfaction rate. But only 7.8 percent of respondents had used Svelte, and 24.7 percent had never heard of it. Meanwhile, 80.3 percent had used React.
View original post here:
The JavaScript Framework That Puts Web Pages on a Diet - WIRED
- Lose Weight Healthily And Quickly The Best Diet Plan And Daily Exercise [Last Updated On: June 10th, 2011] [Originally Added On: June 10th, 2011]
- How Can You Be Sure That A Diet Plan Will Really Work For You [Last Updated On: June 11th, 2011] [Originally Added On: June 11th, 2011]
- Diets That Work - The Best Diet Meals Online! [Last Updated On: June 11th, 2011] [Originally Added On: June 11th, 2011]
- Benefits Of A Healthy Lifestyle And How To Lose Weight With Healthy Diet Plans [Last Updated On: June 12th, 2011] [Originally Added On: June 12th, 2011]
- Healthy Foods That Any Succesful Diet Plan Should Include [Last Updated On: June 14th, 2011] [Originally Added On: June 14th, 2011]
- Want to Lose Weight Go for a Safe Diet Plan That Will Lead to Healthy Weight Loss [Last Updated On: June 14th, 2011] [Originally Added On: June 14th, 2011]
- 5 Components Of A Successful Exercise And Diet Plan [Last Updated On: June 14th, 2011] [Originally Added On: June 14th, 2011]
- Healthy Eating Tips to Lose Weight [Last Updated On: June 14th, 2011] [Originally Added On: June 14th, 2011]
- Fad Diets: Do They Really Work? [Last Updated On: June 14th, 2011] [Originally Added On: June 14th, 2011]
- How To Avoid Yo-Yo Diet Plans [Last Updated On: June 17th, 2011] [Originally Added On: June 17th, 2011]
- Diets that work fast [Last Updated On: June 17th, 2011] [Originally Added On: June 17th, 2011]
- Set Up the Perfect Diet Plan with These Simple Tips [Last Updated On: June 17th, 2011] [Originally Added On: June 17th, 2011]
- diets that work [Last Updated On: June 19th, 2011] [Originally Added On: June 19th, 2011]
- Finally, Weight-loss Diets that Work? Medicine Matters from Sandra Fryhofer, MD [Last Updated On: June 19th, 2011] [Originally Added On: June 19th, 2011]
- weight loss plans that work [Last Updated On: June 22nd, 2011] [Originally Added On: June 22nd, 2011]
- crash diets that work channel presents crash diets that work [Last Updated On: June 23rd, 2011] [Originally Added On: June 23rd, 2011]
- Diets that work fast - Protien Helps Burn Fats [Last Updated On: June 26th, 2011] [Originally Added On: June 26th, 2011]
- Diets That Work with Ali Fedotowsky [Last Updated On: June 27th, 2011] [Originally Added On: June 27th, 2011]
- Successful Weight Loss Secrets Revealed.avi [Last Updated On: June 29th, 2011] [Originally Added On: June 29th, 2011]
- Best Diet Plans Losing Weight by Changing Your Habits [Last Updated On: July 1st, 2011] [Originally Added On: July 1st, 2011]
- Finding Easy Diets That Work Fast [Last Updated On: July 4th, 2011] [Originally Added On: July 4th, 2011]
- Creating a Diet Plan That Can Give You Healthy Quick Weight Loss [Last Updated On: July 4th, 2011] [Originally Added On: July 4th, 2011]
- Can I lose Weight with a Free Diet Plan [Last Updated On: July 12th, 2011] [Originally Added On: July 12th, 2011]
- How to Find a Good Diet Plan [Last Updated On: July 13th, 2011] [Originally Added On: July 13th, 2011]
- Basic Dieting Tips Equal Successful Diet Plan [Last Updated On: July 18th, 2011] [Originally Added On: July 18th, 2011]
- Great Weight Loss Programs Basic Factors To Check [Last Updated On: July 21st, 2011] [Originally Added On: July 21st, 2011]
- Healthy Eating Tips You Should Add to Your Diet [Last Updated On: July 23rd, 2011] [Originally Added On: July 23rd, 2011]
- How Not to Cheat on your Diet Plan [Last Updated On: July 29th, 2011] [Originally Added On: July 29th, 2011]
- Choosing the Right Diet Plan for Permanent Weight Loss [Last Updated On: August 1st, 2011] [Originally Added On: August 1st, 2011]
- Healthy Dieting Tips How You Eat Is More Important Than What You Eat [Last Updated On: August 9th, 2011] [Originally Added On: August 9th, 2011]
- What Is Your Reason to Lose Weight [Last Updated On: August 13th, 2011] [Originally Added On: August 13th, 2011]
- The Basics Of A Safe Diet Plan For Your Heart [Last Updated On: August 17th, 2011] [Originally Added On: August 17th, 2011]
- Eating the Right Foods will Give You a Diet Plan that Works [Last Updated On: August 25th, 2011] [Originally Added On: August 25th, 2011]
- Diets That Don't Work [Last Updated On: September 8th, 2011] [Originally Added On: September 8th, 2011]
- Liquid Protein Diets Work [Last Updated On: September 9th, 2011] [Originally Added On: September 9th, 2011]
- Do Low Carb Diets Work ? [Last Updated On: September 9th, 2011] [Originally Added On: September 9th, 2011]
- Why Diets Don't Work [Last Updated On: September 12th, 2011] [Originally Added On: September 12th, 2011]
- A DIET that WORKS: NO DIET! A RAW FOOD LIFESTYLE ~ for OSCAR! ~ BIKE TOURING the WEST COAST! vid#46 [Last Updated On: September 12th, 2011] [Originally Added On: September 12th, 2011]
- Quick Diets Really Work [Last Updated On: September 12th, 2011] [Originally Added On: September 12th, 2011]
- Diets Dont Work - Thinking Thin Does [Last Updated On: September 13th, 2011] [Originally Added On: September 13th, 2011]
- Low Carb Diet-Why Low Carb Diets Work [Last Updated On: September 14th, 2011] [Originally Added On: September 14th, 2011]
- Atkins Diet: Does low carb work as well for all groups? [Last Updated On: September 16th, 2011] [Originally Added On: September 16th, 2011]
- How Does The HCG Diet Work - Official HCG diet Plan - HCG Diet For Men - HCG Diet User Reviews [Last Updated On: September 19th, 2011] [Originally Added On: September 19th, 2011]
- Crash diets that work from worlds best diet channel [Last Updated On: September 24th, 2011] [Originally Added On: September 24th, 2011]
- Macro-Patterning: Advanced Carb Cycling For Fat Loss [Last Updated On: September 24th, 2011] [Originally Added On: September 24th, 2011]
- Why Low Calorie Diets Don't Work and Never Will (Don't Starve or Crash Diet) [Last Updated On: September 25th, 2011] [Originally Added On: September 25th, 2011]
- Why "fad" diets don't work? [Last Updated On: September 27th, 2011] [Originally Added On: September 27th, 2011]
- The Crazy Celebrity Cabbage Soup Diet That Works [Last Updated On: September 29th, 2011] [Originally Added On: September 29th, 2011]
- Weight loss diet that (really) works [Last Updated On: September 29th, 2011] [Originally Added On: September 29th, 2011]
- Fad Diets Do Not Work. How To Lose Weight Without Dieting... [Last Updated On: October 1st, 2011] [Originally Added On: October 1st, 2011]
- Low Calorie Diet DO NOT WORK - Lose 30lbs Manipulating Them [Last Updated On: October 2nd, 2011] [Originally Added On: October 2nd, 2011]
- Fad Diets: What works and What DOESN'T? [Last Updated On: October 4th, 2011] [Originally Added On: October 4th, 2011]
- All Diets Work [Last Updated On: October 4th, 2011] [Originally Added On: October 4th, 2011]
- 3 Weight Loss Diet Tips That Works | Fastest Way To Lose Weight [Last Updated On: October 4th, 2011] [Originally Added On: October 4th, 2011]
- Do Diet Pills Work? INSPIRED: The Movie Expert Insights [Last Updated On: October 4th, 2011] [Originally Added On: October 4th, 2011]
- Fad Diets: What Really Works for Weight Loss [Last Updated On: October 5th, 2011] [Originally Added On: October 5th, 2011]
- Healthy Diets Work Fast - Free Diet Video [Last Updated On: October 5th, 2011] [Originally Added On: October 5th, 2011]
- Does Hcg Diet Plan Work - A Peek Into Hcg Diet Plan [Last Updated On: October 5th, 2011] [Originally Added On: October 5th, 2011]
- Researchers Discover Why High-Fat, Low-Carb Ketogenic Diets Work To Control Epileptic Seizures [Last Updated On: October 5th, 2011] [Originally Added On: October 5th, 2011]
- Why "Quick Fix" Diets Do Not Work! [Last Updated On: October 5th, 2011] [Originally Added On: October 5th, 2011]
- Binge Eating [Last Updated On: October 5th, 2011] [Originally Added On: October 5th, 2011]
- Rosie Huntington-Whiteley Diet Weight Measurements [Last Updated On: October 5th, 2011] [Originally Added On: October 5th, 2011]
- does the diet solution program really work [Last Updated On: October 5th, 2011] [Originally Added On: October 5th, 2011]
- EASIEST Diet For Women to Follow (Don't Starve Yourself Thin!) [Last Updated On: October 6th, 2011] [Originally Added On: October 6th, 2011]
- Crash diets that really work [Last Updated On: October 6th, 2011] [Originally Added On: October 6th, 2011]
- Cabbage Soup Diet [Last Updated On: October 6th, 2011] [Originally Added On: October 6th, 2011]
- Do Detox Diets Really Work? [Last Updated On: October 6th, 2011] [Originally Added On: October 6th, 2011]
- Does the every other day diet really work? [Last Updated On: October 6th, 2011] [Originally Added On: October 6th, 2011]
- Why Extreme Diets Like Atkins Low Carb and HCG Diet DONT WORK LONG TERM [Last Updated On: October 6th, 2011] [Originally Added On: October 6th, 2011]
- Fast Weight Loss Diet: Does Calorie Counting Work? [Last Updated On: October 6th, 2011] [Originally Added On: October 6th, 2011]
- Beyond Chocolate. Diets don't work! [Last Updated On: October 8th, 2011] [Originally Added On: October 8th, 2011]
- Failure To Thrive: GFCF and Feingold Diets Work For ... [Last Updated On: October 10th, 2011] [Originally Added On: October 10th, 2011]
- Low Carb Diets: How They Work [Last Updated On: October 10th, 2011] [Originally Added On: October 10th, 2011]
- Diet Pills That Work - Video [Last Updated On: October 14th, 2011] [Originally Added On: October 14th, 2011]
- Diets That Work - Lose 30lbs In 30 Days - Video [Last Updated On: October 15th, 2011] [Originally Added On: October 15th, 2011]
- Understanding the Atkins Diet, Why It Works and What it Can Do For You - Video [Last Updated On: October 15th, 2011] [Originally Added On: October 15th, 2011]
- crash diets that work channel presents crash diets that work - Video [Last Updated On: October 15th, 2011] [Originally Added On: October 15th, 2011]
- REALISTIC Diet [Last Updated On: October 15th, 2011] [Originally Added On: October 15th, 2011]
- Why Diets Don't Work - Video [Last Updated On: October 15th, 2011] [Originally Added On: October 15th, 2011]
- Diets That Work - 'Burn' Fat Faster With This Diet - Video [Last Updated On: October 15th, 2011] [Originally Added On: October 15th, 2011]