Host JS and CSS files locally?

  • Profile Image
    adficient
    Asked on November 14, 2012 at 05:14 PM

    I just started using JotForm and I noticed it loads 2 JS files and 2 CSS files from JotForm's servers.  My website speed monitoring tool is taking like 1-2 seconds to load those 4 files so I'm wondering if I can just host them all locally and change paths in the source code.  Will that work?  Anything special I'd have to do?

    Thanks!

  • Profile Image
    GlobeTechnical
    Answered on November 14, 2012 at 05:16 PM

    I'd also be interested to know the answer to this.

  • Profile Image
    NeilVicente
    Answered on November 14, 2012 at 05:33 PM

    The form's full source files (zip) can be downloaded and subsequently hosted on your own servers by following the instructions on the link below:

    http://www.jotform.com/help/104-How-to-Download-a-Source-Code-of-your-Form

    As long as the folder structure remains the same when the source is unzipped and uploaded, the files will be referenced correctly and the form should work as the JotForm-hosted version would.

    Feel free to ask if you have further questions.

    Best

  • Profile Image
    digitalactive
    Answered on July 07, 2017 at 10:23 AM

    Hi,
    how about something like this?

    <script type="text/javascript" src="https://form.jotformz.com/jsform/xxxxxxxx" data-ext-css="../css/custom-jotform.css"></script>

    Using data attribute.
  • Profile Image
    EltonCris
    Answered on July 07, 2017 at 12:53 PM

    @digitalactive

    Since this thread is way too old, we will answer your question to a separate thread here https://www.jotform.com/answers/1193664. We'll be on it shortly.