-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple calls to swf file #72
Comments
I think that it is loaded in a per flash button basis. So, do you have
|
I do have three buttons (copy, excel, pdf). The tabletools documentation has 5 buttons, but calls the file 4 times (perhaps the "print" button doesn't invoke the flash file). Even if this is the root of the multiple calls...is it necessary? |
The swf file is indeed loaded once for each button. The SWF file is the same for the buttons, and I've never understood why the are multiple requests for the same file... Browsers just seem not to cache it. Hmmm - looking at my examples with Chrome, for some reason, Chrome is sending:
That might explain the problem, but not why it is sending that... Need more investigation I think! (meanwhile we raise a glass to the day in the future when we can get rid of the Flash dependency here...) |
Cross-posted this to stackoverflow.com. Maybe one of those smart cookies can figure this out. |
I happened to notice in my application that the copy_csv_xls_pdf.swf is getting called three times when datatables/tabletools are invoked. I put together a jsfiddle to illustrate the issue:
The same behavior can be observed from the TableTools documentation:
Why is this file getting loaded multiple times? It's particularly problematic because the intial load of the file doesn't seem to be cached by the browser for subsequent loads.
The text was updated successfully, but these errors were encountered: