Title: Support CSS @import
Last modified: March 19, 2019

---

# Support CSS @import

 *  Resolved [alusion](https://wordpress.org/support/users/alusion/)
 * (@alusion)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/support-css-import/)
 * Hello,
 * I’m maintaining CSS files on another domain. Usually, I do [@import](https://wordpress.org/support/users/import/)
   in the themes style.css. However, LSC does not bypass and merge it into one file.
   Most other caching plugins do this.
 * If I enqueue the styles via PHP it is also not being merged. It’s being served
   from the other domain.
 * Is there a workaround for this?
 * Now I have to copy/paste the CSS files to each domain every time when I make 
   changes.
 * Looking forward to your reply.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  [stanley@litespeed](https://wordpress.org/support/users/stanleylitespeed/)
 * (@stanleylitespeed)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/support-css-import/#post-11331020)
 * Hi [@alusion](https://wordpress.org/support/users/alusion/),
 * Please try the following steps:
 * 1) Go to LiteSpeed Cache > Settings > CDN
 * 2) Turn [ON] Enable CDN, add your original URL to CDN Mapping and turn off Include
   Images, Include CSS, Include JS if you are not using the CDN function.
 * 3) Put all of your domain to Original URLs
 * 4) Save Changes and Purge all cache, then you can see those minify/combine js/
   css.
 *  Thread Starter [alusion](https://wordpress.org/support/users/alusion/)
 * (@alusion)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/support-css-import/#post-11331107)
 * Thank you for the fast reply. However, it did not work.
 * I wrote a workaround doing a filemtime() comparison, and if the file is newer
   it will be copied with copy().
 * Would be neat if LSC supports CSS [@import](https://wordpress.org/support/users/import/)
   though.
 * Thank you!
 *  [stanley@litespeed](https://wordpress.org/support/users/stanleylitespeed/)
 * (@stanleylitespeed)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/support-css-import/#post-11331363)
 * May I confirm [@import](https://wordpress.org/support/users/import/) is mean 
   adding a row like
    `@import: url('http://fonts.googleapis.com/css?family=Varela');`
   on your themes style.css to use external CSS file, and you want to bypass and
   NOT merge it into one file when enable CSS minify/combine function on LiteSpeed
   Cache plugin?
 *  Thread Starter [alusion](https://wordpress.org/support/users/alusion/)
 * (@alusion)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/support-css-import/#post-11333792)
 * Sorry, I do want them to be merged. The situation is as follows:
 * Domain 1: [https://domain1.com/css/stylesheet1.css](https://domain1.com/css/stylesheet1.css)
   
   Domain 1: [https://domain1.com/css/stylesheet2.css](https://domain1.com/css/stylesheet2.css)
   Domain 1: [https://domain1.com/css/stylesheet3.css](https://domain1.com/css/stylesheet3.css)…
 * On **domain 2** I use [@import](https://wordpress.org/support/users/import/) 
   in the theme style.css.
 * Domain2: [@import](https://wordpress.org/support/users/import/) url(“[https://domain1.com/css/stylesheet1.css&#8221](https://domain1.com/css/stylesheet1.css&#8221););
   
   Domain2: [@import](https://wordpress.org/support/users/import/) url(“[https://domain1.com/css/stylesheet2.css&#8221](https://domain1.com/css/stylesheet2.css&#8221););
   Domain2: [@import](https://wordpress.org/support/users/import/) url(“[https://domain1.com/css/stylesheet3.css&#8221](https://domain1.com/css/stylesheet3.css&#8221););…
 * This way the CSS is not being imported, merged nor combined.
 * The same goes for if I register & enqueue the CSS from domain 1 in domain 2 functions.
   php.
 * Hopefully this is clearer, I should have explained it better.
 *  [stanley@litespeed](https://wordpress.org/support/users/stanleylitespeed/)
 * (@stanleylitespeed)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/support-css-import/#post-11335813)
 * Thanks for the explanation and suggestion, currently we do not have this feature
   but we will add to our todo list, no ETA at this moment.
 *  Thread Starter [alusion](https://wordpress.org/support/users/alusion/)
 * (@alusion)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/support-css-import/#post-11338220)
 * Thanks for the clarification. Topic solved.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Support CSS @import’ is closed to new replies.

 * ![](https://ps.w.org/litespeed-cache/assets/icon-256x256.png?rev=2554181)
 * [LiteSpeed Cache](https://wordpress.org/plugins/litespeed-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/litespeed-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/litespeed-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/litespeed-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/litespeed-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/litespeed-cache/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [alusion](https://wordpress.org/support/users/alusion/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/support-css-import/#post-11338220)
 * Status: resolved