Antialiasing issue within a browser

I specified Antialiasing attribute for my scene with this :

render.setAntialias(AntialiasAttrib.MAuto)

It works perfectly when I test my python file alone. The result is good.
However, this attribute doesn’t behave in the same way within a brower so with the packaging (p3d file).

Yet, I still observe a difference between with or not with this antialiasing attribute, but it is not optimal, it’s unsatisfactory. Without the packaging, the result is better.

What it may be due to ?

Setting antialiasing to MAuto isn’t enough to enable multisample antialiasing. You also need a Config.prc file requesting a multisampling framebuffer (“framebuffer-multisample #t”) and set a specific number of samples (or 1 to get the maximum amount) using “multisamples 1” or something similar.