Lossless Scaling -lsfg 3-

Break free from CSS prefix hell!

Only 2KB gzipped Fork me on GitHub

-prefix-free lets you use only unprefixed CSS properties everywhere. It works behind the scenes, adding the current browser’s prefix to any CSS code, only when it’s needed.

“[-prefix-free is] fantastic, top-notch work! Thank you for creating and sharing it.”

Eric Meyer

Lossless Scaling -lsfg 3-

Lossless Scaling -lsfg 3-

Lossless Scaling -lsfg 3-

Check this page’s stylesheet ;-)

You can also visit the Test Drive page, type in any code you want and check out how it would get prefixed for the current browser.

Lossless Scaling -lsfg 3-

Just include prefixfree.js anywhere in your page. It is recommended to put it right after the stylesheets, to minimize FOUC

That’s it, you’re done!

Lossless Scaling -lsfg 3-

The target browser support is IE9+, Opera 10+, Firefox 3.5+, Safari 4+ and Chrome on desktop and Mobile Safari, Android browser, Chrome and Opera Mobile on mobile.

If it doesn’t work in any of those, it’s a bug so please report it. Just before you do, please make sure that it’s not because the browser doesn’t support a CSS3 feature at all, even with a prefix.

In older browsers like IE8, nothing will break, just properties won’t get prefixed. Which wouldn’t be useful anyway as IE8 doesn’t support much CSS3 ;)

Lossless Scaling -lsfg 3-

Test the prefixing that -prefix-free would do for this browser, by writing some CSS below:

| Feature | NVIDIA DLSS 3/FG | AMD AFMF 2 | | | :--- | :--- | :--- | :--- | | Hardware Required | RTX 40-series only | RX 6000/7000 series | Any DirectX 11/12/Vulkan GPU | | Game Support | Requires developer integration | Works globally (Driver level) | Works globally (Any window/app) | | Max Multiplier | 2x | 2x | 4x (240Hz support) | | Cost | "Free" (via $400+ GPU) | Free | $7 (One time) | | Latency | Best (with Reflex) | Good | Good (Requires manual FPS capping) |

Despite the magic, LSFG 3 is not a silver bullet.

| Scenario | Native FPS | LSFG 3 Multiplier | Perceived FPS | Added Latency (Est) | Verdict | | :--- | :--- | :--- | :--- | :--- | :--- | | | 40 FPS | 2x (LSFG Quality) | 80 FPS | ~25ms | Excellent | | Racing/Sports | 60 FPS | 2x (Balanced) | 120 FPS | ~15ms | Great | | Competitive FPS | 120 FPS | 2x | 240 FPS | ~10ms | Playable | | Impossible Build | 30 FPS | 3x | 90 FPS | ~45ms | Cinematic only |

“Beginning final approach,” she said, recording for the log. “Gravitational lensing appears… controlled. No artifacts.”

Input lag—the traditional enemy of frame gen—has been slashed by 24% .

LSFG 3 shifts the load from the game engine to the video encoding/decoding and computational overhead of the interpolation.

Lossless Scaling -lsfg 3-

| Feature | NVIDIA DLSS 3/FG | AMD AFMF 2 | | | :--- | :--- | :--- | :--- | | Hardware Required | RTX 40-series only | RX 6000/7000 series | Any DirectX 11/12/Vulkan GPU | | Game Support | Requires developer integration | Works globally (Driver level) | Works globally (Any window/app) | | Max Multiplier | 2x | 2x | 4x (240Hz support) | | Cost | "Free" (via $400+ GPU) | Free | $7 (One time) | | Latency | Best (with Reflex) | Good | Good (Requires manual FPS capping) |

Despite the magic, LSFG 3 is not a silver bullet. Lossless Scaling -LSFG 3-

| Scenario | Native FPS | LSFG 3 Multiplier | Perceived FPS | Added Latency (Est) | Verdict | | :--- | :--- | :--- | :--- | :--- | :--- | | | 40 FPS | 2x (LSFG Quality) | 80 FPS | ~25ms | Excellent | | Racing/Sports | 60 FPS | 2x (Balanced) | 120 FPS | ~15ms | Great | | Competitive FPS | 120 FPS | 2x | 240 FPS | ~10ms | Playable | | Impossible Build | 30 FPS | 3x | 90 FPS | ~45ms | Cinematic only | | Feature | NVIDIA DLSS 3/FG | AMD

“Beginning final approach,” she said, recording for the log. “Gravitational lensing appears… controlled. No artifacts.” No artifacts

Input lag—the traditional enemy of frame gen—has been slashed by 24% .

LSFG 3 shifts the load from the game engine to the video encoding/decoding and computational overhead of the interpolation.

Tweet