Find Jobs
Hire Freelancers

JS Print Button - Problem with Async as it calls External Script.

$30-250 USD

Opravljeno
Objavljeno pred približno 2 letoma

$30-250 USD

Plačilo ob dostavi
Our website uses a JS script on the main page. This specific JS script is called a different way as it provides info for the print service. The main calls this script like this. <script async type="text/javascript"> (function() { var p=[login to view URL]("script");p.type="text/javascript";p.async=true; var h=("https:"==[login to view URL]"https://":"http://"); p.src=h+"[login to view URL]"; var s=[login to view URL]("script")[0];[login to view URL](p,s); }).call(this); [login to view URL] = 'async'; </script> Which in theory should load async, but does not. The headers of that page loads another external script like this var timestamp = "03-03-2019 18:24"; var checkoutUrl = ('https:' == [login to view URL] ? 'https://' : 'http://') + '[login to view URL]'; var baseAssetUrl = ('https:' == [login to view URL] ? 'https://' : 'http://') + '[login to view URL]'; if (![login to view URL]) { var head = [login to view URL]('head')[0]; var script = [login to view URL]('script'); [login to view URL] = 'text/javascript'; [login to view URL] = baseAssetUrl + '/storage/javascript/[login to view URL]'; [login to view URL](script); } I have copied these two external scripts locally to /waitme/[login to view URL] /waitme/[login to view URL] Can these also be merged into one script instead of one calling the other? --- IDEAL SOLUTION Merge the 2 external scripts into 1 local script and only have the main page button call that script .... When the button is clicked, Not Everytime the page loads. --- a fantastic review will be given if you can get it to load async, Or not at all if it is called when the button is clicked... even better.
ID projekta: 32622994

Več o projektu

5 ponudb
Projekt na daljavo
Aktivno pred 2 letoma

Želite zaslužiti?

Prednosti oddajanja ponudb na Freelancerju

Nastavite svoj proračun in časovni okvir
Prejmite plačilo za svoje delo
Povzetek predloga
Registracija in oddajanje ponudb sta brezplačna
Dodeljeno:
Avatar uporabnika
Hello Nice to meet you. I'm a Web developer, with over 12 years of experience dealing with Javascript. I can fix the issue sure. I can start your project immediately. I look forward to working on this project with you. Thank you.
$100 USD v 1 dnevu
5,0 (3 ocen)
1,8
1,8
5 freelancerjev je oddalo ponudbo s povprečno vrednostjo $156 USD za to delo
Avatar uporabnika
Hi, I can fix your problem which you are facing with Async as it calls External Script on Js script. Let me know when you here to discuss more in detailed about Job. I am having 10 years experience on JS development. You can check my profile : https://www.freelancer.com/u/AltiuseCreaton for my skills and work. Looking forward to your project Regards Rina
$250 USD v 1 dnevu
5,0 (159 ocen)
7,6
7,6
Avatar uporabnika
Hi there, I can help you with this and would love to work with. Kindly share details so I can go through and start work ASAP. An experienced WordPress, Ecommerce, website, mobile app developer & expert in (PHP,HTML,JavaScript,MySQL,Node.js,React.js,Laravel,Amazon Web Services,Flutter,Web Hosting,Web Development,jQuery/Prototype,Software Development,Codeigniter) , also a hard-working, reliable freelance Web Developer. I love being in this line of work because I am passionate about technology, design, and innovation. I also like to learn the latest technologies and continuously improve myself. I can assure you to provide excellent quality work in a very short span of time. 100% client satisfaction is my first priority. Contact us on WhatsApp +916207976982. Thanks!
$140 USD v 7 dneh
0,0 (0 ocen)
0,0
0,0

O stranki

Zastava NEW ZEALAND
Auckland, New Zealand
5,0
28
Plačilna metoda je verificirana
Član(ica) od mar. 17, 2011

Verifikacija stranke

Hvala! Po e-pošti smo vam poslali povezavo za prevzem brezplačnega dobropisa.
Pri pošiljanju vašega e-sporočila je šlo nekaj narobe. Poskusite znova.
Registrirani uporabniki Skupaj objavljenih del
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Nalaganje predogleda
Geolociranje je bilo dovoljeno.
Vaša prijavna seja je potekla, zato ste bili odjavljeni. Prosimo, da se znova prijavite.