Injecting scripts and styles
-
I like this plugin. What I’m not thrilled with is that the wp_rp_head_resources function has a mix of injection and enqueuing. It is injecting javascript into the header with no way of stopping it since it isn’t being enqueued.
Also, even though there is a CSS file (loaded from Cloudfront, which I fail to understand), there is still some CSS being inlined anyway. Can someone please explain the rationale for this behavior? Why not just create another CSS file?
Finally, the scripts and styles are loaded on every page. May I suggest you find a way to make it conditional?
Again, great plugin, but I’ll need to create some workarounds for these behaviors.
http://ww.wp.xz.cn/extend/plugins/wordpress-23-related-posts-plugin/
The topic ‘Injecting scripts and styles’ is closed to new replies.