---
title: "Discussion on \"Introducing SplitCSS: the API for reducing unused CSS from your webpages. Your support is appreciated.\" | Hashnode"
description: "Discussion on \"Introducing SplitCSS: the API for reducing unused CSS from your webpages. Your support is appreciated.\". Fellow developers, I am about to launch splitcss.com, an API for reducing dead stylesheets.\nEasy stylesheet splitting for individual web pages\nHere's what happens very often: we have turned placing CSS into one file a habit.\nSo the browser has no cho..."
url: "https://hashnode.com/posts/introducing-splitcss-the-api-for-reducing-unused-css-from-your-webpages-your-support-is-appreciated/5e738611bc8844135ba508da"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Introducing SplitCSS: the API for reducing unused CSS from your webpages. Your support is appreciated.](https://hashnode.com/post/introducing-splitcss-the-api-for-reducing-unused-css-from-your-webpages-your-support-is-appreciated?utm_source=hashnode&utm_medium=feed)

Fellow developers, I am about to launch splitcss.com, an API for reducing dead stylesheets. Easy stylesheet splitting for individual web pages Here's what happens very often: we have turned placing CSS into one file a habit. So the browser has no cho...

Mar 19, 2020 · hashnode.com  
Read the article

-   [#css](https://hashnode.com/tag/css)
-   [#code-splitting](https://hashnode.com/tag/code-splitting)
-   [#apis](https://hashnode.com/tag/apis)
-   [#css3](https://hashnode.com/tag/css3)
-   [#showhashnode](https://hashnode.com/tag/showhashnode)

## Written by

[Vladimir Apostolski](https://hashnode.com/@vlad86)

@vlad86 · Berlin, Germany

  
[View profile](https://hashnode.com/@vlad86)

Co-founder | Programmer | SEO Professional

Co-founder and managing director at Noctua Media GmbH, a marketing company in Berlin. Programmer with 15 years of experience. Expertise in technical SEO. Areas of interest: Travel, Finance.

## Responses 1

Markdown supported · ⌘↵ to post

[Gijo Varghese](https://hashnode.com/@gijovarghese)

[Mar 25, 2020](https://hashnode.com/posts/introducing-splitcss-the-api-for-reducing-unused-css-from-your-webpages-your-support-is-appreciated/5e738611bc8844135ba508da/comment/5e7aa472bb6684de7a455f1d)

How does it handle media queries and css classes injected by JavaScript?

[Vladimir Apostolski](https://hashnode.com/@vlad86)

[Mar 26, 2020](https://hashnode.com/posts/introducing-splitcss-the-api-for-reducing-unused-css-from-your-webpages-your-support-is-appreciated/5e738611bc8844135ba508da/comment/5e7aa472bb6684de7a455f1d#reply-5e7d13c313780b394db17a89)

Hey Gijo, that's a good question about media queries - for now it does not detect the size of the viewport of the client and it doesn't process the media queries based on that. But maybe that would be a good idea - to identify the client and return only the media queries that apply.

The css classes by JavaScript: classes that are added after pageload are left in the stylesheet, but if you have HTML partials returned by AJAX requests that introduce new CSS classes to the DOM, you should mark those in your stylesheet with a comment and then the service will leave them in the stylesheet.

Typically there wouldn't be too many CSS selectors that are returned after pageload, so it shouldn't be a performance issue.

The API is not perfect, still in beta here, but working on it. It currently uses Headless Chrome and UnCSS.
