The original principle?

https://www.snapchat.com/l/en.

assume that this station is ready
you right > the original code, you can see that many html, js and so on will be implemented
but what is the principle of this?
assume that there is a West need to modify the deletion, how can they restore it?
I just wanted to modify it, but suddenly it occurred to me that I would like to restore it.
modify it and then continue to upload it? Is that the principle?

Mar.20,2021

this compression is based on the fact that html is enclosed by tags, there is no need for branches, and even everything can be written on one line.
js code also has ; and {} to define code blocks and active branches (each ; is a line of code). In addition, using variable name substitution, etc., you can reduce extraneous spaces, line breaks, and other content in the content to achieve content compression, and even use the text compression algorithm to perform an unzipped dynamic loading before executing the specific content (automatically executed by the browser when loading the code).
this kind of technology can satisfy the effects of building network traffic, speeding up transmission and so on, and it can also be encrypted to a certain extent (such as adding obfuscation processing).
the development of this code is a set of systems, and after completion, it will be automatically compressed and deployed through special tools.
refer to https://blog.csdn.net/yanghaonan7758/article/details/71077411


main functions are:

1. 
2. `undefined``void 0`
3. 
4. 
 
modify it and then continue to upload it? Is that the principle?

is like this, modification is not a problem, if it is debugging, you need Source Map , but it usually comes with.


multiple codes. The development environment and the production environment use different codes.
modification is to modify the original code-> package, compress-> produce
something needs to be modified or deleted, but the original code is changed-> packaging and compression are two copies that do not affect each other

Menu