While asking questions we can link to external CSS and JavaScript plugins or scripts using the Stack Snippet feature. What is the size limit for this? Could I link to a 100 GB file?
1 Answer
Stack snippets don't handle the download of external resources. Stack snippets are just HTML, CSS and JS which run inside a sandboxed iframe, so they can't send forms, use AJAX and things like that.
However, they can use a <script>
or <video>
or some element which loads an external resource. This is handled by the browser, not by the stack snippet.
If you want to avoid huge downloads, you will need to configure your browser as such. You might be able to set a policy only for the stacksnippets.net domain.
-
Thanks. So I take it as that there is no limit to size of external sources. Commented Jan 17, 2017 at 7:39
Run code snippet
and then browser start download a large file.