Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

227
Views
have tabulator using a gz compressed json file without enabling compression on the web server

I can't change the web server so I can't enable compression on the .json file automatically. This would be my ideal solution.

I would like tabulator to pull down a json file that is compressed to a gz file, but I don't know if it's possible or what I would need to do in order to tell it to decompress it before trying to use it.

Is there a way to set the ajaxURL to gz and it work?

Thanks

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You could use the ajaxResponse callback to take the incoming compressed data and then decompress it before passing it into Tabulator.

In this example im going to use the advice of this GZip Stack Overflow Question so you will need to copy the uncompress function from there

var table = new Tabulator("#exmaple-table", {
    ...other table config
    ajaxResponse:function(url, params, response){
        return uncompress(response);
    },
});

Full details of the ajaxResponse callback can be found in the Ajax Documentation

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!