Optimize WordPress theme stylesheet inclusion

Yesterday I was workin on latest project, where I needed to include WordPress Child theme’s stylesheet in blog. Following good practise I wanted to escape from using @import in my style.css. By fast research and tests, found way how to optimize that inclusion (code snippet here: New way to include WordPress Theme Stylesheet in 2012).

Today @konstruktors shared link to latest WordPress default theme TwentyTwelve, where style.css is included same way.

I still see space for optimize my code, but nice to see that I am going same way as future release of WordPress Theme.

Yesterday I was workin on latest project, where I needed to include WordPress Child theme’s stylesheet in blog. Following good practise I wanted to escape from using @import in my style.css. By fast research and tests, found way how to optimize that inclusion.

Leave a Reply

Your email address will not be published. Required fields are marked *