2018-07-27, 08:26 PM
Hello as a theme developer, I'm interested if you could add a way to optimize the css according to the form you visit in your forum.
Example:
I do a postbit with 500 lines of CSS by default mybb loads all the css in its global.css bone if you load your index.php will load the 500 lines of the postbit.
To this same I mean, that only loads the necessary css according to what you visit (that the index.php does not load the css of the postbit, only when you visit the postbit it loads it)
I think that for this I should make several css files for all MyBB but this would increase the performance for developers who use a lot of CSS.
Apart also when you add heavy jquery that only loads the necessary according to what you visit
use traductor google xD.
Version original espaƱol.
Hola como desarrollador de themes, me interesa si se podria agregar una forma de optimizar el css segun la planilla que visites de tu foro.
Ejemplo:
Hago un postbit con 500 lineas de CSS por defecto mybb carga todo el css en su global.css osea si cargas tu index.php cargara las 500 lineas del postbit.
A esto mismo me refiero, que solo carge el css necesario segun lo que visites (que el index.php no carge el css del postbit, solo cuando visites el postbit lo carge)
Creo que para esto deberia hacer varios archivos css para todo MyBB pero esto aumentaria bastante el rendimiento de optimizacion para los desarrolladores que usan mucho CSS.
Aparte tambien cuando se agrega jquery pesado que solo carge lo necesario segun lo que visites
Example:
I do a postbit with 500 lines of CSS by default mybb loads all the css in its global.css bone if you load your index.php will load the 500 lines of the postbit.
To this same I mean, that only loads the necessary css according to what you visit (that the index.php does not load the css of the postbit, only when you visit the postbit it loads it)
I think that for this I should make several css files for all MyBB but this would increase the performance for developers who use a lot of CSS.
Apart also when you add heavy jquery that only loads the necessary according to what you visit
use traductor google xD.
Version original espaƱol.
Hola como desarrollador de themes, me interesa si se podria agregar una forma de optimizar el css segun la planilla que visites de tu foro.
Ejemplo:
Hago un postbit con 500 lineas de CSS por defecto mybb carga todo el css en su global.css osea si cargas tu index.php cargara las 500 lineas del postbit.
A esto mismo me refiero, que solo carge el css necesario segun lo que visites (que el index.php no carge el css del postbit, solo cuando visites el postbit lo carge)
Creo que para esto deberia hacer varios archivos css para todo MyBB pero esto aumentaria bastante el rendimiento de optimizacion para los desarrolladores que usan mucho CSS.
Aparte tambien cuando se agrega jquery pesado que solo carge lo necesario segun lo que visites