Import css files in LESS vs. enqueue styles in wordpress -
i want know there problem importing plugin styles including bootstrap working stylesheet.less , compile of them stylesheet.css instead of using wp_enqueue_style , minify , compine of them cache plugins?
result same (1 minified css) want know there standard not allow importing instead of enqueue?
it depends on lot's of factors, better enqueue 1 stylesheet.css if less files being compiled 1 file. note imported concatenated 1 file because from page speed standpoint, @import css file should never used, can prevent stylesheets being downloaded concurrently.
another difference compiling happening locally before upload server, quite obvious faster compared loading cache plugins etc. same you.
that being said if have server running http/2 downloading lot of tiny style sheets won’t matter, http requests cheap in world of http/2. organizing css-files according page-templates on used far better. can serve code visitor needs. i'm trying may not need cache plugins if running on http/2 server, require files compiled css before uploading server.
there might more people want add, think should cover question.
Comments
Post a Comment