Speeding up your project in smartEdit

This little tip worked for speeding up our projects, so hopefully it will do the same for you.

Our stylesheets and script files had a lot of areas that we wanted to use placeholders for, such as variables, images or links to other script files. As such they were all created as content classes. Unfortunately this meant that each time smartEdit loaded a page of content, it was having to render about 10-15 additional pages.

As you can imagine… snails moved faster than our system when we had more than 6 users.

The solution to this was to break the rules, just for smartEdit mind. Normally we’d frown upon inlining CSS and JS, but in this case it increased the speed of our smartEdit experience tenfold. No, really.

The header for our pages now includes two areas to link in the CSS/JS files.

One has the normal Link/Script elements and is set to only show once the site has published.

The other is a container where we attach all the files needed inside smartEdit. This doesn’t have to be all of your files as you may not want some functionality working inside Reddot, statistics gathering is one that springs to mind. This is set to only show up in smartEdit or preview modes.

 

Add to Del.cio.us RSS Feed Add to Technorati Favorites Stumble It! Digg It!
    www.sajithmr.com

Leave a Reply