Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (() => {
- let script = document.createElement("SCRIPT");
- script.src = 'https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js'; //VersΓ£o do CDN
- script.type = 'text/javascript';
- document.getElementsByTagName("head")[0].appendChild(script);
- let checkReady = (callback) => {
- if (window.jQuery) {
- callback(jQuery);
- }
- else {
- window.setTimeout(() => checkReady(callback), 20);
- }
- };
- checkReady(($) => {
- $(() => {
- /*
- Aqui ja vai o codigo depois de importar o Jquery
- */
- });
- });
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement