Tuesday, April 12, 2016

Enqueuing Scripts and Styles in WordPress

After developing WordPress plugins and themes for a while, you start thinking more and more about your theme performance and what problems could it cause for your customers. One of these problems is enqueuing scripts and styles. In this article we’ll cover the basics of enqueuing scripts and best practices for different use cases. You can check this article for a beginner overview on managing your WordPress assets.

Enqueuing Scripts and Styles

If you need some CSS or JavaScript code to be injected into certain pages of your website, we tend to either add them inside the same markup file or add them using a direct URL to the file.

Continue reading %Enqueuing Scripts and Styles in WordPress%


by Younes Rafie via SitePoint

No comments:

Post a Comment