javascript - Embed only used scripts and styles in HTML file -


does know of tool can @ webpage styles , scripts , images, , create html file has styles , scripts , images embedded, only ones used page?

i have typical "this site offline maintenance" page, entire website in own right, based on bootstrap 3. want reduce whole website single file images, css , js required display page.

update

using typical browser save file functionality not achieve want, firstly not embed css/js resources in page, saves them in subfolder , references them there; , secondly, not appear strip out styles , scripts not directly referenced page, rather saving files in entirety.

i believe snappysnippet help. extracts html & css element , sends e.g. jsfiddle review. you'd extract html element, should work.

regrettably, doesn't js, maintenance page should work fine.

some details creator on so , here on youtube.


Comments

Popular posts from this blog

SVG stroke-linecap doesn't work for circles in Firefox? -

routes - Laravel 4 Wildcard Routing to Different Controllers -

cross browser - XSLT namespace-alias Not Working in Firefox or Chrome -