Pretrained model load on front end

Hi nice to e-meet you all , wondering is it possible
Train a model , save it , and Load the model in the front end, as a javascript file or some other known way?