Ocsigen / Eliom: How to remove unnecessary JavaScript?

I am taking my first steps in web programming with the Ocsigen platform. I can create simple applications, but I noticed that Ocsigen generates a ton of unnecessary JavaScript code. Even the Hello world example , which has no interactive components at all, generates and includes a 400KB JavaScript file. Is there a way to tell this not to do this?

I first noticed this problem while testing a simple application that uses internal links; testing with JavaScript disabled worked well, but with JavaScript returning, I noticed that each link has an associated piece of JavaScript that I didn't write and can't control. Obviously, this code is unnecessary if the site works just as well without it. I would really like to avoid this. Any advice?

+3


source to share


1 answer


This is created if you use a functor Eliom_registration.App

. You can use Eliom_registration.Html5

if you are not using javascript and it will generate normal html page with no magic in it. On the other hand, this means that you cannot use client-side values.



+4


source







All Articles