WebFormsJS Version Size - Even with a dial-up modem!

Published: (December 23, 2025 at 05:27 PM EST)
2 min read
Source: Dev.to

Source: Dev.to

Cover image for WebFormsJS Version Size - Even with a dial-up modem!

Introduction

The WebFormsJS library in WebForms Core by Elanat is a key component for client‑side interactions. As the library evolves, the file size naturally increases. Reducing JavaScript file size is crucial for faster page load times and lower bandwidth usage.

WebFormsJS Size

This article examines Minify and Gzip Compression for reducing the size of WebFormsJS across versions 1.0 to 2.0.

Enabling Gzip Response Compression in ASP.NET Core

To reduce the size of transferred files, Gzip Compression can be used. The following ASP.NET Core example shows how to enable Gzip:

// Startup / Program.cs
builder.Services.AddResponseCompression(options =>
{
    options.EnableForHttps = true;
    options.Providers.Add();
});

builder.Services.Configure(options =>
{
    options.Level = System.IO.Compression.CompressionLevel.Fastest;
});

app.UseResponseCompression();

Key points about this setup

  • Fastest means lighter and faster compression, keeping the server responsive.
  • The technique is universal and can be used with any programming language; ASP.NET Core is shown as a practical example.

WebFormsJS File Sizes Across Versions

File sizes are in kilobytes (KB).

VersionRawMinifyRaw + GzipMinify + Gzip
1.053.0122.579.255.69
1.160.8926.5010.566.54
1.260.8726.4810.556.52
1.360.6826.3010.526.49
1.474.1531.8012.717.91
1.581.6034.8013.528.40
1.683.6835.3614.138.71
1.792.2739.8416.3210.07
1.8105.9945.8218.9011.76
1.9162.5071.9630.1018.41
2.0319.76145.9362.4139.59

A high‑compression test (CompressionLevel.SmallestSize) for version 2.0 produced:

  • Raw + Gzip: 48.72 KB
  • Minify + Gzip: 33.93 KB

Note: In version 2 of WebForms Core, module‑call support was added, so the library size is expected to stabilize in future releases.

Analysis of Size Reduction

Minify

Removing unnecessary spaces, comments, and formatting reduces the file size by roughly 55–60 % without affecting functionality.

Gzip Compression

Gzip dramatically cuts transfer size; even raw files can see up to 80 % reduction when compressed.

Combining Minify + Gzip

Using both techniques yields the best results:

  • Version 1.0: 53 KB → 5.69 KB
  • Version 2.0: 319 KB → 39.59 KB

This combination improves page‑load speed and bandwidth efficiency.

Conclusion

Applying Minify and Gzip provides substantial file‑size reductions for any WebFormsJS version.

  • In the latest version (2.0), the Minify + Gzip file is only 39.59 KB.
  • Such a small payload is extremely efficient even on very slow connections (e.g., a 56 Kbps dial‑up modem loads the script and HTML page in about 6 seconds).
  • Fastest compression level maintains high server responsiveness while still delivering impressive size savings.
  • The technique is language‑agnostic and can be applied in any programming environment; ASP.NET Core is shown here as a practical example.

Combining Minify and Gzip is the most effective approach for optimized file delivery and faster user experience, regardless of connection speed.

Back to Blog

Related posts

Read more »

A React Snowfall Effect with Physics

!Cover image for A React Snowfall Effect with Physicshttps://media2.dev.to/dynamic/image/width=1000,height=420,fit=cover,gravity=auto,format=auto/https%3A%2F%2F...