Loading JSZip and PDFMake scripts dynamically

Loading JSZip and PDFMake scripts dynamically

smartcoresmartcore Posts: 2Questions: 1Answers: 0

JSZip and PDFMake scripts aren't lightweight. Is it possible to load them dynamically on clicking "Export to Excel"/"Export to PDF" button (using jQuery.getScript() or something like this), only when user really needs to use these libraries?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,210Questions: 1Answers: 10,415 Site admin
    Answer ✓

    Hi,

    I've added a comment to your discussion about this in github. Let's continue the conversation there, rather than both here and there.

    Good point about getScript - I'd forgotten about that.

    Allan

  • smartcoresmartcore Posts: 2Questions: 1Answers: 0

    OK, thanks Allan! Closing this! I've answered in github. I think that this discussion can be interesting to other users too.

This discussion has been closed.