You can improve the Bad FID of your webpage by optimizing your JavaScript parses, then compiling it and executing the webpage directly. This will improve the FID.