craft-cpcss: Plugin causes very slow CP load times

Hi Lindsey,

First, thanks for sharing this plugin, it’s been easy to use for adding styles to the redactor formatting menu. Unfortunately, I have been having issues developing this site locally because the CP takes forever to load (5+ sec.) and I wasn’t sure what the issue was until today as I started disabling plugins. I put together a short video [removed] to demonstrate what’s going on. Essentially loading an external style sheet with a environment variable {baseUrl} causes the slowest load times. If I move the styles into the database this speeds things up, but is still not desirable.

About this issue

  • Original URL
  • State: closed
  • Created 9 years ago
  • Comments: 17

Most upvoted comments

Hey, just wanted to let you know that this bug still persists in the Craft 2 versions of both CpCss and CpJS. On one of our projects this was slowing down the control panel enough to make it unusable.

We’re currently addressing this by using the @import statement in the Additional CSS field to pull in an external file instead.

Yup, that makes sense… They share 95% of the same DNA. Whatever solution we work out for CP CSS will get ported over to CP JS when we’re finished.

Let me know when you have a chance to try that new branch!

Oh wow, thanks @rungta! Not sure why I closed this thread before I made any code changes.

I’ll re-open this ticket and try to address it in the near future. 👍