http2-netty icon indicating copy to clipboard operation
http2-netty copied to clipboard

Add CSS and JS

Open helioguardabaxo opened this issue 5 years ago • 3 comments

Hi, Leo! I'm need to add .css and .js files to customize page of Tiles. I added css inline to byte[] server.tiles.Html.HEADER and it's worked ok. But I need to view the .css and .js files in loading page performance on Browser.

May you help me? Thanks

helioguardabaxo avatar Dec 03 '19 00:12 helioguardabaxo

Oi Hélio,

I just noticed your comment today, sorry :(

Do you still need this? I can try to have a look.

Cheers, Leo

leogomes avatar Feb 17 '20 13:02 leogomes

Oi Leo! Eu preciso servir arquivos estáticos diretamente de um diretório. Quando digitar na url localhost/imagem.jpg ou /contatos.html ele deveria servir estes arquivos. Você sabe se é possível fazer isso?

Grato pelo retorno! (Aliás, é bom falar em português por aqui? Ou é melhor em inglês?)

helioguardabaxo avatar Feb 17 '20 13:02 helioguardabaxo

O objetivo desse projetinho era só ser um demonstrador da performance do HTTP2 na época que saiu (há uns 5 anos atrás). Não era pra ser um "full-blown HTTP2 server". Acho que até dá pra adaptá-lo pra isso, mas é melhor usar nginx, http://undertow.io/ ou algo assim se o teu objetivo é servir arquivos estáticos.

[]'s

leogomes avatar Feb 17 '20 19:02 leogomes