75 questions
1
vote
3
answers
138
views
How to block the page from loading in an inline script until async operations finish
I have this embed script that needs to be placed in the head of websites:
<script src="https://www.example.com/track.js?wid=123”></script>
It needs to execute before the page body ...
1
vote
0
answers
30
views
External scripts in Android HTTP server don't work
I'm trying to make a console joke in HTML, and I have my main script in /system/shell.js and when I put this script into my html <script src="system/shell.js"></script>, when I ...
2
votes
0
answers
61
views
Vue - Memory leak with external scripts (non-npm library)
I using a external javascript library for working with stl files (Stl Viewer) in a vue project. I inject the script in body like that on the mounted function.
...
mounted () {
const script = ...
0
votes
1
answer
508
views
Snakemake: wildcards do not expand in script line of rule
I am running a pipeline and was trying to optimize it by declaring the paths in a config file (config.yaml). The config.yaml file contains the path to find the scripts to run inside the pipeline, but ...
0
votes
1
answer
125
views
Creating new instances of external script in React
I've been stuck with integrating external script in my React application.
The idea is to use external html/js widget that will suggest addresses based on the data in the input field.
The widget ...
0
votes
1
answer
1k
views
Load a React component at runtime from a plain JSX external script
In general terms, what are the options that I have to load and render in runtime a React component that I have in an uncompiled JSX plain script somewhere: maybe from a string or from a url. Obviously ...
-1
votes
1
answer
75
views
Why is my external script not working in my HTML?
I'm quite new to coding.
Basically, I'm trying to use the below external JS file in my HTML but it doesn't work when I include this in my HTML file:
var map = L.map('map').setView([51.505, -0.09], 13);...
0
votes
1
answer
201
views
How to run memory intensive shell script from PySpark rdd.mapPartitions
Let's say I have a Spark cluster with 32gb of RAM nodes. 1G of executor memory is enough for processing any of my data.
There is a Linux shell program (program) that I need to run for each partition. ...
0
votes
1
answer
616
views
External Scripts connnecting miner to Zabbix getting zero data
I'm trying the external script here https://github.com/AndOr0812/zabbix-antminer And after I configured the scripts and proxy settings, I was keeping getting zero data, both in Zabbix and the ...
2
votes
1
answer
299
views
Powershell Script: Pass parameter with "" like $Arg="$somePath" should result in "c:\temp\" including the ""
this is my first question on stackoverflow, so please be easy on me.
Problem:
The call to an external EXE file from a Powershell Script should look like this.
C:\temp\someEXE.exe "batch" &...
3
votes
3
answers
3k
views
Load External Script From Advertising Partner in React.js app
I want to include two types of ads into my React.js Web app
<script async="async" data-cfasync="false" src="//somewebstite.com/invoke.js"></script>
<div id="container-4foobarbaz">&...
0
votes
0
answers
197
views
Can I do dom manipulation on HTML loaded by an external script?
I have a widget on a site that is loaded externally with a third-party <script>.
I need to manipulate DOM in their widget. Is there any way I can do this without a callback in their external ...
0
votes
0
answers
1k
views
Script onload issue in React
I'm using an external script in my react code. And I've written the code below for your understanding-
import React, { Component, PropTypes } from 'react';
export default class GetIframe extends ...
0
votes
1
answer
367
views
Python read csv error using external script
I am very new to external script and python and was trying with very simple code.
Trying to print the data from a csv file.
execute sp_execute_external_script
@language = N'Python',
@script=N'
...
0
votes
1
answer
53
views
Unable to access component after external script loaded
I'm trying to load Google API inside an angular6 app. After the load event has been fired, I can't really change anything in my component.
Have a look at the comments at the last 3 lines of the ...
0
votes
2
answers
262
views
Why Go.js doesn't work with inline script?
I have an application that cannot use external scripts references. I've always being able to use any kind of script putting it inline, but with go.js it has not being possible. Is there any particular ...
1
vote
1
answer
688
views
External scripts not loading dynamically in angular 5
I have included the external scripts in .angular-cli.json file in the scripts property i.e.
`
"scripts": [
"../src/assets/plugins/jquery/jquery.min.js",
"../src/assets/plugins/popper/...
0
votes
1
answer
32
views
execute external script when the last option value selected
I working on little page where user have to select 4 thing, once the last option value is selected then I want to execute external script like to load overly player:
<script scr="video.js" async="...
31
votes
2
answers
10k
views
Any good reason not to use <script defer> TODAY?
Once upon a time, there were many heated debate on <script> in <head> or <body>.
Many SO posts had already pointed out the best practice / rule of thumb is to place the <script&...
1
vote
1
answer
423
views
Why will Github Pages not allow my valid HTML?
I am currently making a repo on Github for Github Pages that utilizes a W3Schools script. My index.html code looks like this:
<!DOCTYPE html>
<html>
<head>
<title>[...
10
votes
3
answers
6k
views
How to load a 3rd party script from web dynamically into Angular2 component
I am trying to load a 3rd party script from web, instead of making a local copy of it and be able to use the 3rd party script's global variables and functions after the script loads.
Update:
Here is ...
1
vote
1
answer
243
views
Wordpress: Why isn't my stylesheet being enqueued?
I'm modifying an existing WP plugin by making a separate plugin that will extend it. I'd like to write CSS that will override the plugin. However, when I try to enqueue the stylesheet it doesn't work. ...
2
votes
0
answers
66
views
What is the most efficient way of loading scripts for Social Network APIs?
Like most websites these days, my personal website has an array of widgets for social networks, such as “Like”, “Follow” and “Share” buttons etc.
In order to embed these widgets, I use the JavaScript ...
3
votes
2
answers
4k
views
How to do input task in maven antrun plugin
I created a maven project and i'm trying to run an external script.
In this external script, i use read command to ask a question and get an answer.
It works if i do a sudo mvn package with exec-...
2
votes
1
answer
179
views
How do you include multiple external javascript files without increasing http requests
I have a website that has multiple external javascript files, I would like to reduce these to increase performance.
Some of the external scripts include typekit, google analytics, linkedin js api, ...